Class: PdfTemplator::DateType

Inherits:
TextType show all
Defined in:
lib/pdf_templator/types.rb

Instance Attribute Summary

Attributes inherited from Type

#args, #content

Instance Method Summary collapse

Methods inherited from Type

#initialize

Constructor Details

This class inherits a constructor from PdfTemplator::Type

Instance Method Details

#callObject



49
50
51
# File 'lib/pdf_templator/types.rb', line 49

def call
  content.to_time.strftime(args[:format] || '%d/%b/%Y')
end