Module: Deckorator::Delegator::ClassMethods
- Defined in:
- lib/deckorator/delegator.rb
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args, &block) ⇒ Object
19 20 21 22 23 |
# File 'lib/deckorator/delegator.rb', line 19 def method_missing(method, *args, &block) decorated_object_class.respond_to?(method) ? decorated_object_class.send(method, *args, &block) : super end |