lib/map.rb in map-2.2.2 vs lib/map.rb in map-2.3.0
- old
+ new
@@ -1,7 +1,7 @@
class Map < Hash
- Version = '2.2.2' unless defined?(Version)
+ Version = '2.3.0' unless defined?(Version)
Load = Kernel.method(:load) unless defined?(Load)
class << Map
def version
Map::Version
@@ -605,13 +605,9 @@
return options.values
end
def apply(other)
- dup.apply!(other)
- end
-
- def apply!(other)
Map.for(other).depth_first_each do |keys, value|
set(keys => value) unless !get(keys).nil?
end
self
end