class DbMailerRails::Replacer
Attributes
replace_hash[RW]
Public Class Methods
new(replace_hash)
click to toggle source
@param replace_hash
[Hash]
# File lib/db_mailer_rails/replacer.rb, line 8 def initialize(replace_hash) self.replace_hash = replace_hash end
Public Instance Methods
replace(text)
click to toggle source
@param text [DbMailerRails::Base] @return [String]
# File lib/db_mailer_rails/replacer.rb, line 14 def replace(text) Mustache.render(text, replace_hash) end