Class: Pegarus::Variable
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#pattern ⇒ Object
Returns the value of attribute pattern.
Instance Method Summary collapse
-
#initialize(name, pattern = nil) ⇒ Variable
constructor
A new instance of Variable.
Methods inherited from Pattern
#*, #+, #+@, #-, #-@, #/, engine, #graph, #match, select_engine, #visit
Constructor Details
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
8 9 10 |
# File 'lib/pegarus/ast/variable.rb', line 8 def name @name end |
#pattern ⇒ Object
Returns the value of attribute pattern.
8 9 10 |
# File 'lib/pegarus/ast/variable.rb', line 8 def pattern @pattern end |