lib/baseball/batting.rb in baseball-1.2.0 vs lib/baseball/batting.rb in baseball-1.3.0
- old
+ new
@@ -1,8 +1,7 @@
require 'baseball/player'
module Batting
-
class Batter < Player::PlayerTemplate
def batting_average
avg = @player[:hits].to_f / @player[:at_bats].to_f
player_average = avg.round(3)