Class: Rsec::Map
Overview
transform parse result
Instance Attribute Summary
Attributes inherited from Binary
Attributes included from Parser
Instance Method Summary collapse
Methods included from Parser
#&, #*, #<<, #>>, #^, #cached, #eof, #fail, #inspect, #join, #map, #maybe, #parse, #parse!, #star, #|
Instance Method Details
#_parse(ctx) ⇒ Object
5 6 7 8 9 |
# File 'lib/rsec/parsers/misc.rb', line 5 def _parse ctx res = left()._parse ctx return INVALID if INVALID[res] right()[res, ctx] end |