lib/h/h.rb in modalh-1.1.4 vs lib/h/h.rb in modalh-1.1.5
- old
+ new
@@ -98,10 +98,10 @@
value = value.to_s
digit_grouping value, 3, options[:delimiter], value.index(/\d/), value.size
end
end
- def integer_from(txt)
+ def integer_from(txt, options={})
options = number_format_options(options).merge(options)
if txt.to_s.strip.empty? || txt==options[:blank]
nil
else
txt = txt.tr(' ','')