Class: XPCOMCore::CommandParser::GenerateCommand::TemplateHelpers::EvalContext

Inherits:
Object
  • Object
show all
Defined in:
lib/xpcomcore-rubygem/commands/generate/template_helpers.rb

Instance Method Summary collapse

Constructor Details

#initialize(ivars) ⇒ EvalContext

Returns a new instance of EvalContext.



12
13
14
# File 'lib/xpcomcore-rubygem/commands/generate/template_helpers.rb', line 12

def initialize(ivars)
  ivars.each {|k,v| instance_variable_set("@#{k}", v)}
end

Instance Method Details

#get_bindingObject



16
17
18
# File 'lib/xpcomcore-rubygem/commands/generate/template_helpers.rb', line 16

def get_binding
  binding
end