class MayamlMutt::AccountsAlternates
Public Instance Methods
render(account_names)
click to toggle source
# File lib/mayaml-mutt/accounts_alternates.rb, line 24 def render(account_names) return "" if account_names.nil? || account_names.empty? ::Mustache.render( IO.read(template_file_path), accounts: account_names.join(" ") ) end
Private Instance Methods
template_file_path()
click to toggle source
# File lib/mayaml-mutt/accounts_alternates.rb, line 34 def template_file_path templates_dir = File.expand_path("../templates", __dir__) File.join(templates_dir, "accounts_alternates.mustache") end