lib/map.rb in map-2.4.2 vs lib/map.rb in map-2.5.0

- old
+ new

@@ -1,7 +1,7 @@ class Map < Hash - Version = '2.4.2' unless defined?(Version) + Version = '2.5.0' unless defined?(Version) Load = Kernel.method(:load) unless defined?(Load) class << Map def version Map::Version @@ -218,10 +218,10 @@ end end def self.convert_value(value) conversion_methods.each do |method| - return value.send(method) if value.respond_to?(method) + return coerce(value.send(method)) if value.respond_to?(method) end case value when Hash coerce(value)