container 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/container/version.rb +1 -1
- data/lib/container.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 45d84293e39dfe86c486d890b48ed9d7ef44bf51
|
4
|
+
data.tar.gz: 1646d2ad850d63e71f664cfe7e2e521615131d0f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff1c7088cb7d02c317a31a6d9c055dfd8b8146f17377da6f96e14f1c207273b354bc48652c5fd5e2f3c0123c56a0b7eb718c38343ec4576fc03f20f34cc20d2c
|
7
|
+
data.tar.gz: c58151925c1a972ca282e756e834c2cfbe4e6b0f0ef6bbcd98eaec085fad890eac5c14ed9011b0be84eb71eb40f666c6b5a71a58ac9814151e394755125cc1c6
|
data/lib/container/version.rb
CHANGED
data/lib/container.rb
CHANGED
@@ -31,7 +31,7 @@ class Container
|
|
31
31
|
if key.is_a?(Numeric)
|
32
32
|
@array[key] || NullObject.new
|
33
33
|
else
|
34
|
-
@hash[key]
|
34
|
+
@hash[key] || NullObject.new
|
35
35
|
end
|
36
36
|
end
|
37
37
|
|
@@ -71,7 +71,7 @@ class Container
|
|
71
71
|
@hash[hash_key] = arguments.first
|
72
72
|
else
|
73
73
|
if @hash.keys.include?(hash_key)
|
74
|
-
@hash[hash_key]
|
74
|
+
@hash[hash_key] || NullObject.new
|
75
75
|
else
|
76
76
|
NullObject.new
|
77
77
|
end
|