lib/signal_tools.rb in signal_tools-0.2.1 vs lib/signal_tools.rb in signal_tools-0.2.2

- old
+ new

@@ -1,10 +1,8 @@ -require File.expand_path("../signal_tools/stock_data", __FILE__) -require File.expand_path("../signal_tools/stock", __FILE__) +require "signal_tools/stock_data" +require "signal_tools/stock" module SignalTools - VERSION = '0.2.0' - def self.sum(array) array.inject(0) {|accum, c| accum + c.to_f } end def self.average(array)