Class: Planik::Lohnausweis::TimeDeziFormatter
- Defined in:
- lib/lohnausweis/arbeitslistespalten.rb
Instance Attribute Summary
Attributes inherited from Formatter
Instance Method Summary collapse
- #format(time) ⇒ Object
-
#initialize ⇒ TimeDeziFormatter
constructor
A new instance of TimeDeziFormatter.
Methods inherited from Formatter
Constructor Details
#initialize ⇒ TimeDeziFormatter
42 43 44 |
# File 'lib/lohnausweis/arbeitslistespalten.rb', line 42 def initialize super(true) end |
Instance Method Details
#format(time) ⇒ Object
46 47 48 49 |
# File 'lib/lohnausweis/arbeitslistespalten.rb', line 46 def format time #time = nil if time == 0 time ? super('%.2f', time) : nil end |