arcanus 0.7.0 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cfdbfd95b410c5b263dbd46e5d13b1a47ba24bf3
4
- data.tar.gz: 442ac40544405cc9b5e3066067eb444b9a314a3e
3
+ metadata.gz: 0622bb6c08b521200c277db4f6e39f6efcc12d67
4
+ data.tar.gz: 89dcd338be1abb4bbbcba841b7f3df3f11ac13ba
5
5
  SHA512:
6
- metadata.gz: 9d4925a6692e79b6349390a05a11d7eda0dc14c65fde4e0e35a9ac854951bfd1f8b2fb4f48c3ffe73d0d7c518c3f8cbe13b2a4f56bc62f1a29efe25e5b55d471
7
- data.tar.gz: 03e04c35dc1bae222f657b01a94e2f7a349e72cc94b66439a5604ab077edbddada2475bf57ef638bf4f02bd1c9da41fe42b6294a71ea56d0e9aa3a2cd6d9a6e4
6
+ metadata.gz: 4fdfbba87c123002c65861704d34a5be103af1c3df81c7cdf17abe9ac65eb8e5341b1b604822ed716cb850d9db7f62a9f0de12ecb2a9d6b2d85b0ad04caf5598
7
+ data.tar.gz: 9a92ac4f7892d688e23b64b3f257f0f950ffdbac05ae1f2510bc97b9c7d5ea3abcdf89149c0845f00d4885fa4f58455f996f5c47a7ec617f937d9c416c97a0e4
@@ -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)
@@ -2,5 +2,5 @@
2
2
 
3
3
  # Defines the gem version.
4
4
  module Arcanus
5
- VERSION = '0.7.0'.freeze
5
+ VERSION = '0.8.0'.freeze
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arcanus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shane da Silva