Class: Fabulator::Grammar::Expr::SetSkip
- Inherits:
-
Object
- Object
- Fabulator::Grammar::Expr::SetSkip
- Defined in:
- lib/fabulator/grammar/expr/set_skip.rb
Instance Method Summary collapse
-
#initialize(skip) ⇒ SetSkip
constructor
A new instance of SetSkip.
- #parse(cursor) ⇒ Object
Constructor Details
#initialize(skip) ⇒ SetSkip
Returns a new instance of SetSkip.
5 6 7 |
# File 'lib/fabulator/grammar/expr/set_skip.rb', line 5 def initialize(skip) @skip = skip end |
Instance Method Details
#parse(cursor) ⇒ Object
9 10 11 |
# File 'lib/fabulator/grammar/expr/set_skip.rb', line 9 def parse(cursor) cursor.skip = @skip end |