Class: Treetop::Runtime::CompiledParser

Inherits:
Object
  • Object
show all
Includes:
Harby::Concerns::Delegation
Defined in:
lib/harby/ext/compiled_parser.rb

Instance Attribute Summary

Attributes included from Harby::Concerns::Delegation

#delegate

Instance Method Summary collapse

Instance Method Details

#parse(*args) ⇒ Object



7
8
9
10
11
12
13
# File 'lib/harby/ext/compiled_parser.rb', line 7

def parse(*args)
  result = parse_without_reference(*args)
  if delegate && result.respond_to?(:delegate=)
    result.delegate = delegate
  end
  result
end

#parse_without_referenceObject



5
# File 'lib/harby/ext/compiled_parser.rb', line 5

alias_method :parse_without_reference, :parse