Class: Planik::Lohnausweis::TimeFormatter

Inherits:
Formatter
  • Object
show all
Defined in:
lib/lohnausweis/arbeitslistespalten.rb

Instance Attribute Summary

Attributes inherited from Formatter

#align_right

Instance Method Summary collapse

Methods inherited from Formatter

#initialize, #summe

Constructor Details

This class inherits a constructor from Planik::Lohnausweis::Formatter

Instance Method Details

#format(time) ⇒ Object



26
27
28
# File 'lib/lohnausweis/arbeitslistespalten.rb', line 26

def format time
  time.nil? ? nil : time.strftime("%H:%M")
end