Sha256: dd26b1be786607c641137f57eaa0be600d454aa16fe59aebf18e84ece6a2735a

Contents?: true

Size: 317 Bytes

Versions: 13

Compression:

Stored size: 317 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(self, x, operator.to_sym)
            end
          end
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
dydx-0.1.314 lib/dydx/algebra/operator/parts/base.rb
dydx-0.1.31 lib/dydx/algebra/operator/parts/base.rb
dydx-0.1.3 lib/dydx/algebra/operator/parts/base.rb
dydx-0.1.29 lib/dydx/algebra/operator/parts/base.rb
dydx-0.1.28 lib/dydx/algebra/operator/parts/base.rb
dydx-0.1.25 lib/dydx/algebra/operator/parts/base.rb
dydx-0.1.2 lib/dydx/algebra/operator/parts/base.rb
dydx-0.1.1 lib/dydx/algebra/operator/parts/base.rb
dydx-0.1.0 lib/dydx/algebra/operator/parts/base.rb
dydx-0.0.9 lib/dydx/algebra/operator/parts/base.rb
dydx-0.0.8 lib/dydx/algebra/operator/parts/base.rb
dydx-0.0.7 lib/dydx/algebra/operator/parts/base.rb
dydx-0.0.6 lib/dydx/algebra/operator/parts/base.rb