lib/baseball.rb in baseball-0.1.0 vs lib/baseball.rb in baseball-0.3.1
- old
+ new
@@ -59,6 +59,12 @@
include Fielding
fielder = Fielder.new(fielder_hash)
fielder.fielding_percentage
end
+ def self.stolen_base_percentage(runner_hash)
+ include Running
+ runner = Runner.new(runner_hash)
+ runner.stolen_base_percentage
+ end
+
end