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



26
27
28
# File 'lib/template_harness.rb', line 26

def initialize scope
  @scope = scope
end

Instance Method Details

#get_bindingObject



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

def get_binding
  scope = @scope
  binding
end