Class: ERBContext

Inherits:
Object
  • Object
show all
Defined in:
lib/ufo/init.rb

Overview

Instance Method Summary collapse

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_bindingObject



80
81
82
# File 'lib/ufo/init.rb', line 80

def get_binding
  binding
end