lib/yasl/loader.rb in yasl-0.1.0 vs lib/yasl/loader.rb in yasl-0.2.0
- old
+ new
@@ -83,9 +83,11 @@
def load_ruby_basic_data_type_object(class_name, data)
case class_name
when 'Time'
DateTime.new.marshal_load(data.map(&:to_r)).to_time
+ when 'BigDecimal'
+ BigDecimal(data)
when 'Date'
Date.new.marshal_load(data.map(&:to_r))
when 'DateTime'
DateTime.new.marshal_load(data.map(&:to_r))
when 'Complex'