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