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