Module: PoolParty::MethodMissingSugar
- Included in:
- Base, PluginModel::PluginModel, Pool::Pool
- Defined in:
- lib/poolparty/modules/method_missing_sugar.rb
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(m, *args, &block) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/poolparty/modules/method_missing_sugar.rb', line 4 def method_missing(m, *args, &block) if block_given? (args[0].class == self.class) ? args[0].instance_eval(&block) : super else (m, *args) end end |