Class: AddressComposer::Template
- Inherits:
-
Mustache
- Object
- Mustache
- AddressComposer::Template
- Defined in:
- lib/address_composer.rb
Instance Method Summary collapse
Instance Method Details
#first ⇒ Object
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 |