Class: RSpecPuppetUtils::TemplateHarness::Isolator

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

Instance Method Summary collapse

Constructor Details

#initialize(scope) ⇒ Isolator

Isolates the binding so that only the defined set of instance variables are available to erb



29
30
31
# File 'lib/template_harness.rb', line 29

def initialize scope
  @scope = scope
end

Instance Method Details

#get_bindingObject



32
33
34
35
# File 'lib/template_harness.rb', line 32

def get_binding
  scope = @scope
  binding
end