allow negating Value objects
This commit is contained in:
1 parent
6ff11c012f
commit
d72de51977
2 files changed
+11
No files matched your search
@@ -59,6 +59,11 @@ module Gnucash
|
||||
end
|
||||
end
|
||||
|
||||
# Negate a Value
|
||||
def -@
|
||||
Value.new(-@val, @div)
|
||||
end
|
||||
|
||||
# Multiply a Value object
|
||||
# +other+ should be a Numeric
|
||||
def *(other)
|
||||
|
||||
Reference in new issue
Block a user