Class: Modular::LayoutGenerator::ERBContext

Inherits:
Object
  • Object
show all
Defined in:
lib/modular/layout_generator.rb

Instance Method Summary collapse

Constructor Details

#initialize(hash = {}) ⇒ ERBContext

Returns a new instance of ERBContext.



6
7
8
9
10
# File 'lib/modular/layout_generator.rb', line 6

def initialize(hash = {})
  hash.each_pair do |key, value|
    instance_variable_set('@' + key.to_s, value)
  end
end

Instance Method Details

#get_bindingObject



12
13
14
# File 'lib/modular/layout_generator.rb', line 12

def get_binding
  binding
end