Module: Patme::PatternMatching::InstanceMethods
- Defined in:
- lib/patme/pattern_matching.rb
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args, &block) ⇒ Object
27 28 29 30 31 32 33 34 |
# File 'lib/patme/pattern_matching.rb', line 27 def method_missing name, *args, &block method = self.class.patme_method(name) if method && method.implemented_for?(args) method.call(self, args) else super end end |