upload() Instance Public methods Upload all the individual publishers.
add(pub) Instance Public methods Add a publisher to the composite.
new() Class Public methods
cmp.conj â complexcmp.conjugate â complex Instance Public methods Returns the complex conjugate. Complex(1, 2).conjugate #=> (1-2i)
cmp.to_s â string Instance Public methods Returns the value as a string. Complex(2).to_s #=> "2+0i" Complex('-8/6').to_s #=> "-4/3+0i" Complex('1/2i').to_s #=> "0+1/2i" Complex(0, Float::INFINITY).to_s #=> "0+Infinity*i" Complex(Float::NAN, Float::NAN).to_s #=> "NaN+NaN*i"
cmp.to_r â rational Instance Public methods Returns the value as a rational if possible (the imaginary part should be exactly zero). Complex(1, 0).to_r #=> (1/1) Complex(1, 0.0).to_r # RangeError Complex(1, 2).to_r # RangeError See rationalize.
to_json(*) Instance Public methods
cmp.to_i â integer Instance Public methods Returns the value as an integer if possible (the imaginary part should be exactly zero). Complex(1, 0).to_i #=> 1 Complex(1, 0.0).to_i # RangeError Complex(1, 2).to_i # RangeError
cmp.to_f â float Instance Public methods Returns the value as a float if possible (the imaginary part should be exactly zero). Complex(1, 0).to_f #=> 1.0 Complex(1, 0.0).to_f # RangeError Complex(1, 2).to_f # RangeError
complex.to_c â self Instance Public methods Returns self. Complex(2).to_c #=> (2+0i) Complex(-8, 6).to_c #=> (-8+6i)
Page 2207 of 2275