Sha256: 9b52be0db7ea489ccd594c537c65764be46272f27427940860792f7c72f23f0d
Contents?: true
Size: 427 Bytes
Versions: 1
Compression:
Stored size: 427 Bytes
Contents
module Player class PlayerTemplate attr_accessor :player def initialize(player) @player = player end 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 end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
baseball-0.4.0 | lib/baseball/player.rb |