Class: Kaiseki::ChoiceParser
- Inherits:
-
MultiParser
- Object
- BasicParser
- MultiParser
- Kaiseki::ChoiceParser
- Defined in:
- lib/parser_choice.rb
Instance Attribute Summary
Attributes inherited from BasicParser
Instance Method Summary collapse
Methods inherited from MultiParser
Methods inherited from BasicParser
Methods included from Parseable
#&, #action, #and?, #cast, #filter, #list, #merge, #not!, #one_or_more, #optional, #override, #parse, #protect, #repeat, #set, #skip, #tag_error, #tag_result, #to_parseable, #validate, #zero_or_more
Constructor Details
This class inherits a constructor from Kaiseki::MultiParser
Instance Method Details
#delimiter ⇒ Object
9 10 11 |
# File 'lib/parser_choice.rb', line 9 def delimiter '|' end |
#predicate? ⇒ Boolean
5 6 7 |
# File 'lib/parser_choice.rb', line 5 def predicate? @expected.find {|n| n.predicate? } ? true : false end |