lib/symath/operation.rb in symath-0.1.0 vs lib/symath/operation.rb in symath-0.1.1
- old
+ new
@@ -1,12 +1,12 @@
module SyMath::Operation
# Repeat method until there are no changes
- def iterate(method)
- ret = deep_clone.send(method)
+ def iterate(method, *args)
+ ret = deep_clone.send(method, *args)
if ret == self
return ret
else
- return ret.iterate(method)
+ return ret.iterate(method, *args)
end
end
# Call method recursively down the arguments of the expression
# and call self_method on self.