Class: Kitchen::Docker::ERBContext

Inherits:
Object
  • Object
show all
Defined in:
lib/kitchen/docker/erb_context.rb

Instance Method Summary collapse

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_bindingObject


27
28
29
# File 'lib/kitchen/docker/erb_context.rb', line 27

def get_binding
  binding
end