lib/dydx/algebra/operator/parts/interface.rb in dydx-0.0.1 vs lib/dydx/algebra/operator/parts/interface.rb in dydx-0.0.2
- old
+ new
@@ -3,10 +3,10 @@
module Operator
module Parts
module Interface
%w(+ - * / ^).each do |operator|
define_method(operator) do |x|
- x = _(x) if x.is_a?(Fixnum)
+ x = ::Set::Num.new(x) if x.is_a?(Fixnum)
super(x)
end
end
end
end