Class: Munna::Proxy::Base
- Inherits:
-
Object
- Object
- Munna::Proxy::Base
- Defined in:
- lib/munna/proxy/base.rb
Class Method Summary collapse
Instance Method Summary collapse
- #__perform__(execute) ⇒ Object
-
#initialize(kclass, target, options = {}, &block) ⇒ Base
constructor
A new instance of Base.
- #method_missing(name, *args, &block) ⇒ Object
Constructor Details
#initialize(kclass, target, options = {}, &block) ⇒ Base
Returns a new instance of Base.
9 10 11 12 13 |
# File 'lib/munna/proxy/base.rb', line 9 def initialize(kclass, target, ={}, &block) @kclass = kclass @target = target @opts = end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
Class Method Details
Instance Method Details
#__perform__(execute) ⇒ Object
19 20 21 |
# File 'lib/munna/proxy/base.rb', line 19 def __perform__(execute) @kclass.new(@target, @opts, execute).send("perform_#{self.class.name.demodulize.downcase}") end |