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