Class: Capistrano::ExtensionProxy

Inherits:
Object
  • Object
show all
Defined in:
lib/capistrano/extensions.rb

Overview

:nodoc:

Instance Method Summary collapse

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