class MailBuilder::BindingHelper
Public Instance Methods
add_attribute(key,value)
click to toggle source
# File lib/mail_builder.rb, line 133 def add_attribute key,value self.class.__send__(:attr_accessor, "#{key}") self.__send__("#{key}=", value) end
binding_for()
click to toggle source
# File lib/mail_builder.rb, line 129 def binding_for binding end
set_locals(hash)
click to toggle source
# File lib/mail_builder.rb, line 138 def set_locals hash hash.each do |key,value| add_attribute(key,value) end end