Class: RSpecPuppetUtils::TemplateHarness::Isolator
- Inherits:
-
Object
- Object
- RSpecPuppetUtils::TemplateHarness::Isolator
- Defined in:
- lib/template_harness.rb
Instance Method Summary collapse
- #get_binding ⇒ Object
-
#initialize(scope) ⇒ Isolator
constructor
Isolates the binding so that only the defined set of instance variables are available to erb.
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_binding ⇒ Object
32 33 34 35 |
# File 'lib/template_harness.rb', line 32 def get_binding scope = @scope binding end |