effective_resources 2.7.7 → 2.7.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/effective_resources/effective_gem.rb +2 -2
- data/lib/effective_resources/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 876509ce690f40009d985ee70ab314d1e7e626528f6314357a6a671803afed11
|
4
|
+
data.tar.gz: 7c3f841ef1c7eb55e755acee2ad346352fdfc1df17816ecba720ee6203d4bf90
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d22deab3141c5b804a1ce147311cad65c3342ec7c866007cf321b582bb6f9e53bbc6b2cc2bb4e940abfdea2e71dbe8d85879702bedb0c4b6bc9da42f2e2ec8cf
|
7
|
+
data.tar.gz: 496e8c8b2cfc6d990f947609afdd661f7b0a24c846886ec6df4396409f18a322a6fa7e76046d2f01d2da76c7bad3616320902c52011b833d4d8c6c8162a5809f
|
@@ -15,12 +15,12 @@ module EffectiveGem
|
|
15
15
|
|
16
16
|
# Define getters
|
17
17
|
(config_keys - EXCLUDED_GETTERS).each do |key|
|
18
|
-
self.singleton_class.
|
18
|
+
self.singleton_class.define_method(key) { config()[key] }
|
19
19
|
end
|
20
20
|
|
21
21
|
# Define setters
|
22
22
|
config_keys.each do |key|
|
23
|
-
self.singleton_class.
|
23
|
+
self.singleton_class.define_method("#{key}=") { |value| config()[key] = value }
|
24
24
|
end
|
25
25
|
|
26
26
|
end
|