method

imag

v2_1_10 - Show latest stable - Class: Complex
imag()
public

Returns the imaginary part.

Complex(7).imaginary      #=> 0
Complex(9, -4).imaginary  #=> -4