class Ruby::Prism::ImaginaryNode

Public Instance Methods

Returns the value of the node as a Ruby Complex.

: () -> Complex

# File lib/ruby/prism/node_ext.rb, line 167
def value
  Complex(0, numeric.value)
end