Module: ActivePStore::DynamicMatchers
- Included in:
- Base
- Defined in:
- lib/active_pstore/dynamic_matchers.rb
Defined Under Namespace
Classes: FindBy, FindByBang, Method
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *arguments, &block) ⇒ Object (private)
19 20 21 22 23 24 25 26 27 28 |
# File 'lib/active_pstore/dynamic_matchers.rb', line 19 def method_missing(name, *arguments, &block) match = Method.match(self, name) if match match.define public_send(name, *arguments, &block) else super end end |