Class: Packrat::ErrorReporter
- Inherits:
-
GrammarElement
- Object
- GrammarElement
- Packrat::ErrorReporter
- Defined in:
- lib/packrat/grammar.rb
Overview
Report results of parsing a prod or grammar element
Instance Attribute Summary
Attributes inherited from GrammarElement
Instance Method Summary collapse
-
#initialize(sub) ⇒ ErrorReporter
constructor
A new instance of ErrorReporter.
- #inspect ⇒ Object
- #method_missing(method, *args) ⇒ Object
- #parse(parser) ⇒ Object
Methods inherited from GrammarElement
Constructor Details
#initialize(sub) ⇒ ErrorReporter
Returns a new instance of ErrorReporter.
126 127 128 |
# File 'lib/packrat/grammar.rb', line 126 def initialize(sub) @sub = sub end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args) ⇒ Object
141 142 143 |
# File 'lib/packrat/grammar.rb', line 141 def method_missing(method, *args) @sub.send(method, *args) end |
Instance Method Details
#inspect ⇒ Object
140 |
# File 'lib/packrat/grammar.rb', line 140 def inspect; @sub.inspect; end |