Class: Heed::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 Heed::Listener
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(*args, &block) ⇒ Object
39 40 41 42 43 44 45 46 |
# File 'lib/heed/listener.rb', line 39 def method_missing *args, &block results = dispatcher.handle(*args, &block) if results.length > 0 results else super end end |
Instance Method Details
#respond_to?(method, *args) ⇒ Boolean
35 36 37 |
# File 'lib/heed/listener.rb', line 35 def respond_to?(method, *args) super || dispatcher.handles?(method) end |