Class: Prism::ImaginaryNode

Inherits:
Node
  • Object
show all
Defined in:
lib/prism/node_ext.rb

Instance Method Summary collapse

Methods inherited from Node

#deprecated, #newline_flag!, #newline_flag?

Instance Method Details

#valueObject

Returns the value of the node as a Ruby Complex.



107
108
109
# File 'lib/prism/node_ext.rb', line 107

def value
  Complex(0, numeric.value)
end