lib/dydx/helper.rb in dydx-0.0.6 vs lib/dydx/helper.rb in dydx-0.0.7

- old
+ new

@@ -6,15 +6,15 @@ multiplication: :*, exponentiation: :^ } def is_0? - self == 0 || (is_a?(Num) && n == 0) || (subtrahend? && x.is_0?) + self == 0 || (is_a?(Num) && n == 0) end def is_1? - self == 1 || (is_a?(Num) && n == 1) || (divisor? && x.is_1?) + self == 1 || (is_a?(Num) && n == 1) end def is_minus1? self == -1 || (is_a?(Num) && n == -1) end @@ -120,6 +120,6 @@ def divisor? is_a?(Inverse) && operator == :* end end -end \ No newline at end of file +end