map 4.6.0 → 4.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/map.rb +2 -2
- data/map.gemspec +1 -1
- metadata +3 -3
data/lib/map.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
class Map < Hash
|
2
|
-
Version = '4.6.
|
2
|
+
Version = '4.6.1' unless defined?(Version)
|
3
3
|
Load = Kernel.method(:load) unless defined?(Load)
|
4
4
|
|
5
5
|
class << Map
|
@@ -626,7 +626,7 @@ class Map < Hash
|
|
626
626
|
def respond_to?(method)
|
627
627
|
has_key = has_key?(method)
|
628
628
|
setter = method.to_s =~ /=\Z/o
|
629
|
-
(!has_key and setter) or has_key or super
|
629
|
+
!!((!has_key and setter) or has_key or super)
|
630
630
|
end
|
631
631
|
|
632
632
|
def id
|
data/map.gemspec
CHANGED
metadata
CHANGED