evt-subst_attr 1.1.0.1 → 1.1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/subst_attr/substitute/null_object.rb +7 -11
- 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: 4927e454dd0d6e681a0978c6b91da5828d7c2d2ef17c294993999957f76a1d27
|
4
|
+
data.tar.gz: 18259bd7bb14806699f0e5538b3206828b0ae5b9af2eefc88809675546dc5ef3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ad5814dd1f7f206b5477678be2e9326458697c6b323b4a7d168296cd4c31e710e25337032ba6f6aa63dc0b77531aa08eb94485839ee59014a7e9b97002d9bc6
|
7
|
+
data.tar.gz: 1e690eaa41fc38202a623e63d884b37461bb55ca1e994540e51c8790d3a9d319842aa63806624b40a937ded737239860f9425bce8163f7a6bebfc15f7df47e2a
|
@@ -11,21 +11,17 @@ module SubstAttr
|
|
11
11
|
weak
|
12
12
|
end
|
13
13
|
|
14
|
-
def
|
15
|
-
|
16
|
-
|
17
|
-
def method_missing(*)
|
18
|
-
end
|
19
|
-
end
|
20
|
-
|
21
|
-
const_set(:Weak, cls)
|
22
|
-
end
|
14
|
+
def strict(interface)
|
15
|
+
Mimic.(interface, record: false)
|
16
|
+
end
|
23
17
|
|
18
|
+
def weak
|
24
19
|
Weak.new
|
25
20
|
end
|
26
21
|
|
27
|
-
|
28
|
-
|
22
|
+
Weak = Mimic::Build.(Object, record: false) do
|
23
|
+
def method_missing(*)
|
24
|
+
end
|
29
25
|
end
|
30
26
|
end
|
31
27
|
end
|