Sha256: 014a997bcf997ed7b231213670d5b6e5a288bf7420a8dacc49a6e380cf8dac52

Contents?: true

Size: 318 Bytes

Versions: 5

Compression:

Stored size: 318 Bytes

Contents

module Dydx
  module Algebra
    module Operator
      module Parts
        module Base
          %w(+ * **).map(&:to_sym).each do |operator|
            define_method(operator) do |x|
              ::Algebra::Formula.new(operator.to_sym, self, x)
            end
          end
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
dydx-0.2.7000001 lib/dydx/algebra/operator/parts/base.rb
dydx-0.2.7000000 lib/dydx/algebra/operator/parts/base.rb
dydx-0.1.41421 lib/dydx/algebra/operator/parts/base.rb
dydx-0.1.412 lib/dydx/algebra/operator/parts/base.rb
dydx-0.1.4 lib/dydx/algebra/operator/parts/base.rb