Class: ERBContext
- Inherits:
-
Object
- Object
- ERBContext
- Defined in:
- lib/ufo/init.rb
Overview
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.
74 75 76 77 78 |
# File 'lib/ufo/init.rb', line 74 def initialize(hash) hash.each_pair do |key, value| instance_variable_set('@' + key.to_s, value) end end |
Instance Method Details
#get_binding ⇒ Object
80 81 82 |
# File 'lib/ufo/init.rb', line 80 def get_binding binding end |