Class: Capistrano::ExtensionProxy
- Inherits:
-
Object
- Object
- Capistrano::ExtensionProxy
- Defined in:
- lib/capistrano/extensions.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#initialize(config, mod) ⇒ ExtensionProxy
constructor
A new instance of ExtensionProxy.
- #method_missing(sym, *args, &block) ⇒ Object
Constructor Details
#initialize(config, mod) ⇒ ExtensionProxy
Returns a new instance of ExtensionProxy.
3 4 5 6 |
# File 'lib/capistrano/extensions.rb', line 3 def initialize(config, mod) @config = config extend(mod) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(sym, *args, &block) ⇒ Object
8 9 10 |
# File 'lib/capistrano/extensions.rb', line 8 def method_missing(sym, *args, &block) @config.send(sym, *args, &block) end |