lib/unitwise/unit.rb in unitwise-0.1.0 vs lib/unitwise/unit.rb in unitwise-0.2.0
- old
+ new
@@ -27,11 +27,11 @@
def special?
terms.count == 1 && terms.all?(&:special?)
end
- def functional(value, direction=1)
- terms.first.functional(value, direction)
+ def functional(x=scalar, direction=1)
+ terms.first.functional(x, direction)
end
def dup
self.class.new(expression)
end
\ No newline at end of file