Class: Kitchen::Docker::ERBContext
- Inherits:
-
Object
- Object
- Kitchen::Docker::ERBContext
- Defined in:
- lib/kitchen/docker/erb_context.rb
Instance Method Summary collapse
- #get_binding ⇒ Object
-
#initialize(config = {}) ⇒ ERBContext
constructor
A new instance of ERBContext.
Constructor Details
#initialize(config = {}) ⇒ ERBContext
Returns a new instance of ERBContext.
21 22 23 24 25 |
# File 'lib/kitchen/docker/erb_context.rb', line 21 def initialize(config={}) config.each do |key, value| instance_variable_set('@' + key.to_s, value) end end |
Instance Method Details
#get_binding ⇒ Object
27 28 29 |
# File 'lib/kitchen/docker/erb_context.rb', line 27 def get_binding binding end |