Module: DynamicMethods::InstanceMethods
- Defined in:
- lib/dynamic_methods.rb
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args, &block) ⇒ Object (protected)
:nodoc:
59 60 61 62 63 64 65 66 67 |
# File 'lib/dynamic_methods.rb', line 59 def method_missing name, *args, &block #:nodoc: matching_method, captures = lookup_dynamic_method name if matching_method matching_method.define_and_call self, name, captures, *args, &block else super end end |
Instance Method Details
#respond_to?(name, include_private = false) ⇒ Boolean
:nodoc:
54 55 56 |
# File 'lib/dynamic_methods.rb', line 54 def respond_to? name, include_private = false #:nodoc: !!lookup_dynamic_method(name) || super end |