Module: Baptize::Plugins::Env

Includes:
Capistrano::DSL::Env
Defined in:
lib/baptize/plugins/env.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(sym, *args, &block) ⇒ Object



13
14
15
16
17
18
19
# File 'lib/baptize/plugins/env.rb', line 13

def method_missing(sym, *args, &block)
  if any?(sym)
    fetch(sym)
  else
    super
  end
end

Instance Method Details

#respond_to?(sym, include_priv = false) ⇒ Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/baptize/plugins/env.rb', line 9

def respond_to?(sym, include_priv = false)
  super || any?(sym)
end