Class: Prism::ImaginaryNode

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

Instance Method Summary collapse

Instance Method Details

#valueObject

Returns the value of the node as a Ruby Complex.



69
70
71
# File 'lib/prism/node_ext.rb', line 69

def value
  Complex(0, numeric.value)
end