Class: Modular::LayoutGenerator::ERBContext
- Inherits:
-
Object
- Object
- Modular::LayoutGenerator::ERBContext
- Defined in:
- lib/modular/layout_generator.rb
Instance Method Summary collapse
- #get_binding ⇒ Object
-
#initialize(hash = {}) ⇒ ERBContext
constructor
A new instance of ERBContext.
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_binding ⇒ Object
12 13 14 |
# File 'lib/modular/layout_generator.rb', line 12 def get_binding binding end |