Sha256: 9be0e3dc624d01695409d96338f3a195a9adb2be0b4b22c0d658e13d985f9862
Contents?: true
Size: 292 Bytes
Versions: 2
Compression:
Stored size: 292 Bytes
Contents
module Helper def figure_trailing_zeroes(arg) revised_number = arg if revised_number.length === 3 revised_number = "#{revised_number}0" elsif revised_number.length === 2 revised_number = "#{revised_number}00" else return revised_number end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
baseball-0.4.0 | lib/baseball/helper.rb |
baseball-0.3.1 | lib/baseball/helper.rb |