Class: GemMine::Generator::CtxObj

Inherits:
Object
  • Object
show all
Defined in:
lib/gem_mine/generator.rb

Instance Method Summary collapse

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