Class: Hark::LaxListener

Inherits:
Listener show all
Defined in:
lib/hark/listener.rb

Instance Attribute Summary

Attributes inherited from Listener

#dispatcher

Instance Method Summary collapse

Methods inherited from Listener

#hark, #initialize, #lax, new, #strict

Constructor Details

This class inherits a constructor from Hark::Listener

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(*args, &block) ⇒ Object



49
50
51
# File 'lib/hark/listener.rb', line 49

def method_missing *args, &block
  dispatcher.handle(*args, &block)
end

Instance Method Details

#respond_to_missing?(*args) ⇒ Boolean

Returns:

  • (Boolean)


45
46
47
# File 'lib/hark/listener.rb', line 45

def respond_to_missing? *args
  true
end