Class: Indocker::Utils::RenderNamespace

Inherits:
Object
  • Object
show all
Defined in:
lib/indocker/utils/render_namespace.rb

Instance Method Summary collapse

Constructor Details

#initialize(hash) ⇒ RenderNamespace

Returns a new instance of RenderNamespace.



2
3
4
5
6
# File 'lib/indocker/utils/render_namespace.rb', line 2

def initialize(hash)
  hash.each do |key, value|
    singleton_class.send(:define_method, key) { value }
  end
end

Instance Method Details

#get_binding ⇒ Object



8
9
10
# File 'lib/indocker/utils/render_namespace.rb', line 8

def get_binding
  binding
end