Class: GemMine::Generator::CtxObj
- Inherits:
-
Object
- Object
- GemMine::Generator::CtxObj
- Defined in:
- lib/gem_mine/generator.rb
Instance Method Summary collapse
-
#__binding__ ⇒ Object
-
#initialize(hash) ⇒ CtxObj
constructor
A new instance of CtxObj.
Constructor Details
#initialize(hash) ⇒ CtxObj
Returns a new instance of CtxObj.
336 337 338 339 340 341 |
# File 'lib/gem_mine/generator.rb', line 336 def initialize(hash) @__hash__ = hash hash.each do |k, v| define_singleton_method(k) { v } end end |
Instance Method Details
#__binding__ ⇒ Object
343 344 345 |
# File 'lib/gem_mine/generator.rb', line 343 def __binding__ binding end |