Class: Munna::Proxy::Base
- Inherits:
-
Object
- Object
- Munna::Proxy::Base
- Defined in:
- lib/munna/proxy/base.rb
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.
4 5 6 7 8 |
# File 'lib/munna/proxy/base.rb', line 4 def initialize(kclass, target, ={}, &block) @kclass = kclass @target = target @opts = end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
Instance Method Details
#__perform__(execute) ⇒ Object
14 15 16 |
# File 'lib/munna/proxy/base.rb', line 14 def __perform__(execute) @kclass.new(@target, @opts, execute).send("perform_#{self.class.name.demodulize.downcase}") end |