Class: Prism::ImaginaryNode
Instance Method Summary collapse
-
#value ⇒ Object
Returns the value of the node as a Ruby Complex.
Methods inherited from Node
#deprecated, #newline_flag!, #newline_flag?
Instance Method Details
#value ⇒ Object
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 |