Sha256: 7aed1bba73b38f55116bc90b8a24200f4705a3ef3455e7155ff456b27438c8e8

Contents?: true

Size: 411 Bytes

Versions: 6

Compression:

Stored size: 411 Bytes

Contents

require File.expand_path(File.join(File.dirname(__FILE__), '..', 'fathom'))
module Fathom
  class ValueMultiplier < ValueDescription
    
    def default_process
      obj.values.inject(0.0) do |s, e|
        s *= e
      end
    end
    protected :default_process
  end
end

if __FILE__ == $0
  include Fathom
  # TODO: Is there anything you want to do to run this file on its own?
  # ValueMultiplier.new
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
fathom-0.3.0 lib/fathom/value_multiplier.rb
fathom-0.2.3 lib/fathom/value_multiplier.rb
fathom-0.2.2 lib/fathom/value_multiplier.rb
fathom-0.2.1 lib/fathom/value_multiplier.rb
fathom-0.2.0 lib/fathom/value_multiplier.rb
fathom-0.1.0 lib/fathom/value_multiplier.rb