Class: Ruby::Range
Instance Attribute Summary
Attributes included from Node::Composite
Instance Method Summary collapse
-
#initialize(left, operator, right) ⇒ Range
constructor
A new instance of Range.
- #nodes ⇒ Object
- #value ⇒ Object
Methods inherited from Aggregate
#position, #position=, #prolog, #prolog=, #to_ruby
Methods inherited from Node
#<=>, #all_nodes, #column, #length, #row
Methods included from Conversions
Methods included from Node::Traversal
#has_token?, #has_type?, #has_value?, #is_instance_of?, #left_of?, #matches?, #position?, #right_of?, #select
Methods included from Node::Source
#context, #filename, #line, #lines, #src
Methods included from Node::Composite
Constructor Details
#initialize(left, operator, right) ⇒ Range
Returns a new instance of Range.
13 14 15 16 17 |
# File 'lib/ruby/array.rb', line 13 def initialize(left, operator, right) self.left = left self.operator = operator self.right = right end |