Class: Hark::StrictListener
Instance Attribute Summary
Attributes inherited from Listener
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
39 40 41 |
# File 'lib/hark/listener.rb', line 39 def method_missing *args, &block (results = dispatcher.handle(*args, &block)).any? ? results : super end |
Instance Method Details
#respond_to_missing?(method, *args) ⇒ Boolean
35 36 37 |
# File 'lib/hark/listener.rb', line 35 def respond_to_missing? method, *args dispatcher.handles?(method) || super end |