Method: Parslet::Atoms::Dynamic#try
- Defined in:
- lib/parslet/atoms/dynamic.rb
#try(source, context, consume_all) ⇒ Object
21 22 23 24 25 26 |
# File 'lib/parslet/atoms/dynamic.rb', line 21 def try(source, context, consume_all) result = block.call(source, context) # Result is a parslet atom. return result.apply(source, context, consume_all) end |