Class: AddressComposer::Template

Inherits:
Mustache
  • Object
show all
Defined in:
lib/address_composer.rb

Instance Method Summary collapse

Instance Method Details

#firstObject



30
31
32
33
34
# File 'lib/address_composer.rb', line 30

def first
  lambda do |template|
    render(template.strip).split("||").map(&:strip).reject(&:empty?).first
  end
end