rspec Value

This commit is contained in:
josh committed 2013-08-11 14:41:05 -04:00
1 parent febf4a9f6d
commit 762b7c6413
2 files changed
+35

No files matched your search

+1
View File
@@ -1,6 +1,7 @@
module Gnucash
class Value
attr_accessor :val
def initialize(val)
if val.is_a?(String)
if val =~ /^(-?\d+)\/100$/