Class: Refract::ImaginaryNode
- Defined in:
- lib/refract/nodes/imaginary_node.rb
Instance Attribute Summary collapse
-
#numeric ⇒ Object
Returns the value of attribute numeric.
Instance Method Summary collapse
-
#initialize(prism_node: nil, numeric:) ⇒ ImaginaryNode
constructor
A new instance of ImaginaryNode.
Methods inherited from Node
#accept, #copy, #start_line, #type, type
Constructor Details
#initialize(prism_node: nil, numeric:) ⇒ ImaginaryNode
Returns a new instance of ImaginaryNode.
5 6 7 8 9 |
# File 'lib/refract/nodes/imaginary_node.rb', line 5 def initialize(prism_node: nil, numeric:) @prism_node = prism_node => Prism::Node | nil @numeric = numeric freeze end |
Instance Attribute Details
#numeric ⇒ Object
Returns the value of attribute numeric.
11 12 13 |
# File 'lib/refract/nodes/imaginary_node.rb', line 11 def numeric @numeric end |