Class: XPCOMCore::CommandParser::GenerateCommand::TemplateHelpers::EvalContext
- Inherits:
-
Object
- Object
- XPCOMCore::CommandParser::GenerateCommand::TemplateHelpers::EvalContext
- Defined in:
- lib/xpcomcore-rubygem/commands/generate/template_helpers.rb
Instance Method Summary collapse
- #get_binding ⇒ Object
-
#initialize(ivars) ⇒ EvalContext
constructor
A new instance of EvalContext.
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_binding ⇒ Object
16 17 18 |
# File 'lib/xpcomcore-rubygem/commands/generate/template_helpers.rb', line 16 def get_binding binding end |