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