Module: Struggle::DecimalExtend

Defined in:
lib/struggle/concerns/decimal_extend.rb

Instance Method Summary collapse

Instance Method Details

#cleanObject



3
4
5
# File 'lib/struggle/concerns/decimal_extend.rb', line 3

def clean
  self.to_s.gsub(/0+?$/,"").gsub(/[.]$/,"")
end