module Parslet::Atoms::DSL
Extend the DSL
to with some additional ways to capture the output
Public Instance Methods
as_array(name)
click to toggle source
Like as, but ensures that the result is always an array @return [Array<Parslet::Atoms::Named>]
# File lib/nose/parser.rb, line 47 def as_array(name) Parslet::Atoms::Named.new(self, name, true) end
capture_source(name)
click to toggle source
Capture some output along with the source string @return [CaptureSource]
# File lib/nose/parser.rb, line 53 def capture_source(name) CaptureSource.new(self, name) end