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