Class: Spectre::Directives::NoSkipNoPreSkipDirective
- Inherits:
-
Spectre::Directive
- Object
- Node
- Spectre::Directive
- Spectre::Directives::NoSkipNoPreSkipDirective
- Defined in:
- lib/spectre/generic/directives.rb
Overview
Like nopreskip_d[lexeme_d[...]]
.
Shortcut: noskip_d!
or lexeme_d!
Instance Attribute Summary
Attributes inherited from Spectre::Directive
#iter_skipper, #iter_transformation, #pre_skip
Attributes inherited from Node
#actions, #backtrace, #left, #parent, #parser, #policy, #right, #symbols
Instance Method Summary collapse
Methods inherited from Spectre::Directive
#initialize, #parse, policy, policy!, skipper!, transformation!
Methods inherited from Node
#%, #&, #*, #**, #+, #-, #-@, #>>, #^, #backtrack, #chain, #closure, #closure=, #closure?, #find, #initialize, #initialize_copy, #inspect, #leaf?, #parse, #replace_with, #root?, #shallow_copy, #to_p, #|, #~@
Constructor Details
This class inherits a constructor from Spectre::Directive
Instance Method Details
#[](parser) ⇒ Object
217 218 219 |
# File 'lib/spectre/generic/directives.rb', line 217 def [] parser NoPreSkipDirective.new[NoSkipDirective.new[parser]] end |