Class: Forklift::Base::Mailer::ERBBinding
- Inherits:
-
Object
- Object
- Forklift::Base::Mailer::ERBBinding
- Defined in:
- lib/forklift/base/mailer.rb
Instance Method Summary collapse
- #get_binding ⇒ Object
-
#initialize(hash) ⇒ ERBBinding
constructor
A new instance of ERBBinding.
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_binding ⇒ Object
76 77 78 |
# File 'lib/forklift/base/mailer.rb', line 76 def get_binding return binding() end |