lib/dydx/algebra/operator/parts/base.rb in dydx-0.1.4 vs lib/dydx/algebra/operator/parts/base.rb in dydx-0.1.25
- old
+ new
@@ -1,12 +1,12 @@
module Dydx
module Algebra
module Operator
module Parts
module Base
- %w(+ * **).map(&:to_sym).each do |operator|
+ %w(+ * ^).map(&:to_sym).each do |operator|
define_method(operator) do |x|
- ::Algebra::Formula.new(operator.to_sym, self, x)
+ ::Algebra::Formula.new(self, x, operator.to_sym)
end
end
end
end
end