arcanus 0.7.0 → 0.8.0
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.
- checksums.yaml +4 -4
- data/lib/arcanus/chest.rb +26 -0
- data/lib/arcanus/version.rb +1 -1
- 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: 0622bb6c08b521200c277db4f6e39f6efcc12d67
|
4
|
+
data.tar.gz: 89dcd338be1abb4bbbcba841b7f3df3f11ac13ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4fdfbba87c123002c65861704d34a5be103af1c3df81c7cdf17abe9ac65eb8e5341b1b604822ed716cb850d9db7f62a9f0de12ecb2a9d6b2d85b0ad04caf5598
|
7
|
+
data.tar.gz: 9a92ac4f7892d688e23b64b3f257f0f950ffdbac05ae1f2510bc97b9c7d5ea3abcdf89149c0845f00d4885fa4f58455f996f5c47a7ec617f937d9c416c97a0e4
|
data/lib/arcanus/chest.rb
CHANGED
@@ -35,6 +35,19 @@ module Arcanus
|
|
35
35
|
end
|
36
36
|
end
|
37
37
|
|
38
|
+
def method_missing(method_sym, *args)
|
39
|
+
method_name = method_sym.to_s
|
40
|
+
if @hash.key?(method_name)
|
41
|
+
self[method_name]
|
42
|
+
else
|
43
|
+
super
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
def respond_to?(method_sym, *)
|
48
|
+
@hash.key?(method_sym.to_s) || super
|
49
|
+
end
|
50
|
+
|
38
51
|
# Fetch key from the chest as if it were a hash.
|
39
52
|
def fetch(*args)
|
40
53
|
@hash.fetch(*args)
|
@@ -210,6 +223,19 @@ module Arcanus
|
|
210
223
|
end
|
211
224
|
end
|
212
225
|
|
226
|
+
def method_missing(method_sym, *args)
|
227
|
+
method_name = method_sym.to_s
|
228
|
+
if @hash.key?(method_name)
|
229
|
+
self[method_name]
|
230
|
+
else
|
231
|
+
super
|
232
|
+
end
|
233
|
+
end
|
234
|
+
|
235
|
+
def respond_to?(method_sym, *)
|
236
|
+
@hash.key?(method_sym.to_s) || super
|
237
|
+
end
|
238
|
+
|
213
239
|
# Fetch key from the chest as if it were a hash.
|
214
240
|
def fetch(*args)
|
215
241
|
@hash.fetch(*args)
|
data/lib/arcanus/version.rb
CHANGED