Class: Fabulator::Grammar::Expr::RuleMode
- Inherits:
-
Object
- Object
- Fabulator::Grammar::Expr::RuleMode
- Defined in:
- lib/fabulator/grammar/expr/rule_mode.rb
Instance Method Summary collapse
-
#initialize(m) ⇒ RuleMode
constructor
A new instance of RuleMode.
- #name ⇒ Object
- #parse(s) ⇒ Object
Constructor Details
#initialize(m) ⇒ RuleMode
Returns a new instance of RuleMode.
5 6 7 |
# File 'lib/fabulator/grammar/expr/rule_mode.rb', line 5 def initialize(m) @mode = m end |
Instance Method Details
#name ⇒ Object
9 10 11 |
# File 'lib/fabulator/grammar/expr/rule_mode.rb', line 9 def name nil end |
#parse(s) ⇒ Object
13 14 15 |
# File 'lib/fabulator/grammar/expr/rule_mode.rb', line 13 def parse(s) s.mode = @mode end |