Module: Gracefully::Degradable
- Defined in:
- lib/gracefully/degradable.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
5 6 7 |
# File 'lib/gracefully/degradable.rb', line 5 def self.included(base) base.extend(ClassMethods) end |
Instance Method Details
#__call_gracefully_degradable_method__(method, *args, &block) ⇒ Object
9 10 11 |
# File 'lib/gracefully/degradable.rb', line 9 def __call_gracefully_degradable_method__(method, *args, &block) self.class.instance_variable_get(:@__gracefully_degradable_methods__)[method].call(self, *args, &block) end |