Class: Planik::Lohnausweis::TimeDeziFormatter

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

#summe

Constructor Details

#initializeTimeDeziFormatter

Returns a new instance of 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