sorbet-runtime 0.4.4471 → 0.4.4472
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/types/private/final.rb +1 -1
- data/lib/types/private/methods/_methods.rb +5 -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: f8a8b4923b8931649dd95fa7f039ba848b84990d
|
4
|
+
data.tar.gz: e2bfc998f4b1312b920cc9232d9d99a3dff221dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 717fc4d69f03393e336ccd00d204a750ba99cd2085214d90344b8c453a5686b313cb6ca6db787cd7e1f8faae56d8c3b210b20ec1dde90f8da32f210d1ecac9bf
|
7
|
+
data.tar.gz: 8208290e9829296a7e3a900991ed1f17f28f94948972668c0ad9e14c7cd000c0cd5edb230f3c2fcff8d63e22089b8f44a8b5d9c6d5803633b17e5e8e31341b6f
|
data/lib/types/private/final.rb
CHANGED
@@ -34,6 +34,7 @@ module T::Private::Final
|
|
34
34
|
mod.extend(mod.is_a?(Class) ? NoInherit : NoIncludeExtend)
|
35
35
|
mark_as_final_module(mod)
|
36
36
|
mark_as_final_module(mod.singleton_class)
|
37
|
+
T::Private::Methods.add_module_with_final(mod)
|
37
38
|
T::Private::Methods.install_hooks(mod)
|
38
39
|
end
|
39
40
|
|
@@ -43,6 +44,5 @@ module T::Private::Final
|
|
43
44
|
|
44
45
|
private_class_method def self.mark_as_final_module(mod)
|
45
46
|
mod.instance_variable_set(:@sorbet_final_module, true)
|
46
|
-
T::Private::Methods.add_module_with_final(mod)
|
47
47
|
end
|
48
48
|
end
|
@@ -11,8 +11,11 @@ module T::Private::Methods
|
|
11
11
|
# - they are done possibly before any sig block has run.
|
12
12
|
# - they are done even if the method being defined doesn't have a sig.
|
13
13
|
@final_methods = Set.new
|
14
|
-
#
|
15
|
-
#
|
14
|
+
# a module-with-final is a module for which at least one of the following is true:
|
15
|
+
# - is declared final
|
16
|
+
# - defines a method that is declared final
|
17
|
+
# - includes an module-with-final
|
18
|
+
# - extends an module-with-final
|
16
19
|
@modules_with_final = Set.new
|
17
20
|
@old_included_extended = nil
|
18
21
|
|