Class: Forklift::Base::Mailer::ERBBinding

Inherits:
Object
  • Object
show all
Defined in:
lib/forklift/base/mailer.rb

Instance Method Summary collapse

Constructor Details

#initialize(hash) ⇒ ERBBinding

Returns a new instance of ERBBinding.



69
70
71
72
73
74
# File 'lib/forklift/base/mailer.rb', line 69

def initialize(hash)
  hash.each do |k,v|
    v = v.gsub("'", " ") if v.class == String
    instance_variable_set("@#{k}", v)
  end
end

Instance Method Details

#get_bindingObject



76
77
78
# File 'lib/forklift/base/mailer.rb', line 76

def get_binding
  return binding()
end