Class: Deployme::Config::Context
- Inherits:
-
Object
- Object
- Deployme::Config::Context
show all
- Defined in:
- lib/deployme/config.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Constructor Details
#initialize(options) ⇒ Context
Returns a new instance of Context.
27
28
29
|
# File 'lib/deployme/config.rb', line 27
def initialize(options)
@options = options
end
|
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(meth, *args, &blk) ⇒ Object
31
32
33
|
# File 'lib/deployme/config.rb', line 31
def method_missing(meth, *args, &blk)
@options.send(meth, *args, &blk) || super
end
|
Class Method Details
.with(obj) ⇒ Object
23
24
25
|
# File 'lib/deployme/config.rb', line 23
def self.with(obj)
new(obj).context
end
|
Instance Method Details
#context ⇒ Object
39
40
41
|
# File 'lib/deployme/config.rb', line 39
def context
binding
end
|
#respond_to_missing?(method_name, include_private = false) ⇒ Boolean
35
36
37
|
# File 'lib/deployme/config.rb', line 35
def respond_to_missing?(method_name, include_private = false)
@options.respond_to?(method_name, include_private) || super
end
|