Class: Yarn::Parser
- Inherits:
-
Parslet::Parser
- Object
- Parslet::Parser
- Yarn::Parser
- Defined in:
- lib/yarn/parser.rb
Overview
LPEG style HTTP parser.
Instance Method Summary collapse
-
#run(input) ⇒ Object
Executes the parser on a given input string.
Instance Method Details
#run(input) ⇒ Object
Executes the parser on a given input string.
86 87 88 89 |
# File 'lib/yarn/parser.rb', line 86 def run(input) tree = parse input HeadersTransformer.new.apply tree end |