lib/dm-serializer/to_yaml.rb in dm-serializer-1.0.2 vs lib/dm-serializer/to_yaml.rb in dm-serializer-1.1.0.rc1

- old
+ new

@@ -19,10 +19,10 @@ properties_to_serialize(opts).each do |property| value = __send__(property.name.to_sym) map.add(property.name, value.is_a?(Class) ? value.to_s : value) end # add methods - (opts[:methods] || []).each do |meth| + Array(opts[:methods]).each do |meth| if respond_to?(meth) map.add(meth.to_sym, __send__(meth)) end end (instance_variable_get("@yaml_addes") || []).each do |k,v|