Class: Pegarus::AnyRange
- Defined in:
- lib/pegarus/ast/any_range.rb
Instance Attribute Summary collapse
-
#range ⇒ Object
Returns the value of attribute range.
Instance Method Summary collapse
-
#initialize(range) ⇒ AnyRange
constructor
A new instance of AnyRange.
- #visit(visitor) ⇒ Object
Methods inherited from Pattern
#*, #+, #+@, #-, #-@, #/, engine, #graph, #match, select_engine
Constructor Details
#initialize(range) ⇒ AnyRange
Returns a new instance of AnyRange.
5 6 7 |
# File 'lib/pegarus/ast/any_range.rb', line 5 def initialize(range) @range = range end |
Instance Attribute Details
#range ⇒ Object
Returns the value of attribute range.
3 4 5 |
# File 'lib/pegarus/ast/any_range.rb', line 3 def range @range end |
Instance Method Details
#visit(visitor) ⇒ Object
9 10 11 |
# File 'lib/pegarus/ast/any_range.rb', line 9 def visit(visitor) visitor.any_range self end |