lib/baseball/pitching.rb in baseball-1.0.0 vs lib/baseball/pitching.rb in baseball-1.1.0
- old
+ new
@@ -10,10 +10,10 @@
earned_run_average = avg.round(2)
earned_run_average.to_s
end
def whip
- corrected_innings = third_inning_handler(@player[:ip]).to_f
+ corrected_innings = third_of_an_inning_handler(@player[:ip]).to_f
walks_plus_hits = @player[:walks] + @player[:hits]
figured_whip = walks_plus_hits / corrected_innings
figured_whip = figured_whip.round(3)
figured_whip.to_s
end