lib/baseball/player.rb in baseball-2.0.0 vs lib/baseball/player.rb in baseball-2.0.1
- old
+ new
@@ -43,10 +43,10 @@
def ops
player_ops = obp.to_f + slg.to_f
player_ops_string = player_ops.round(3)
player_ops_string = player_ops_string.to_s
if player_ops_string[0] == "0"
- remove_leading_zero(player_ops_string)
+ figure_lead_and_trailing_zeroes(player_ops_string)
else
player_ops_string
end
end