Complex

Complex(x[, y]) â numeric Instance Public methods Returns x+i*y; Complex(1, 2) #=> (1+2i) Complex('1+2i') #=> (1+2i) Complex(nil) #=> TypeError Complex(1, nil) #=> TypeError Syntax of string form: string form = extra spaces , complex , extra spaces ; complex = real part | [ sign ] , imaginary part | real part , sign , imaginary part | rational , "@" , rational ; real part = rational ; imaginary part = imaginary unit | unsigned rational , ima

BigDecimal

BigDecimal(*args) Instance Public methods

Array

Array(arg) â array Instance Public methods Returns arg as an Array. First tries to call Array#to_ary on arg, then Array#to_a. Array(1..5) #=> [1, 2, 3, 4, 5]

pp

pp(*objs) Class Public methods prints arguments in pretty form. pp returns argument(s).

open

open(path [, mode [, perm]] [, opt]) â io or nilopen(path [, mode [, perm]] [, opt]) {|io| block } â obj Class Public methods Creates an IO object connected to the given stream, file, or subprocess. If path does not start with a pipe character (|), treat it as the name of a file to open using the specified mode (defaulting to ârâ). The mode is either a string or an integer. If it is an integer, it must be bitwise-or of open(2) flags, such as File::RDWR or File::EX

URI

URI(uri) Class Public methods Returns uri converted to a URI object.

toutf8

Kconv.toutf8(str) => string Class Public methods Convert str to UTF-8

toutf32

Kconv.toutf32(str) => string Class Public methods Convert str to UTF-32

toutf16

Kconv.toutf16(str) => string Class Public methods Convert str to UTF-16

tosjis

Kconv.tosjis(str) => string Class Public methods Convert str to Shift_JIS