Class: Koota::Parser
- Inherits:
-
Object
- Object
- Koota::Parser
- Defined in:
- lib/koota/parser.rb
Overview
Parses Koota patterns.
Defined Under Namespace
Classes: Error
Instance Method Summary collapse
Instance Method Details
#call(input) ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/koota/parser.rb', line 12 def call(input) @input = StringStream.new(input) pattern.tap do error!("unexpected #{@input.get.inspect}") unless @input.empty? end end |