Class: PdfTemplator::DateType
- Defined in:
- lib/pdf_templator/types.rb
Instance Attribute Summary
Attributes inherited from Type
Instance Method Summary collapse
Methods inherited from Type
Constructor Details
This class inherits a constructor from PdfTemplator::Type
Instance Method Details
#call ⇒ Object
49 50 51 |
# File 'lib/pdf_templator/types.rb', line 49 def call content.to_time.strftime(args[:format] || '%d/%b/%Y') end |