Class: Yarn::Parser

Inherits:
Parslet::Parser
  • Object
show all
Defined in:
lib/yarn/parser.rb

Overview

LPEG style HTTP parser.

Instance Method Summary collapse

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