hot_module 1.0.0.alpha11 → 1.0.0.alpha12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/hot_module/version.rb +1 -1
- data/lib/hot_module.rb +6 -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: 51da117a031a9b9ad3c16a35b4b5276928874e742bf72e90bc9e1089f4b856a1
|
4
|
+
data.tar.gz: b1bb49f906b3dbc82671ec7a4850baac1899c93ce3237cc88c8bb3c69dff75f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0b6b8661ec4ee9f416eff3373a049c126a744e5bd280ddf88fac6d896f58df1f844f170ddc85d5addbd099e70e5fc8f5d3421a966ea5b13bba2f568eb2bc8f86
|
7
|
+
data.tar.gz: d50b1b02e71f78e14ebde1c8c08abcd80eb79911fd1fafcf15de6a89ea5c412db50ddeecc23e804f05acee61b8d75d1be8ca5bef38937105b779f32b39b4e6e4
|
data/Gemfile.lock
CHANGED
data/lib/hot_module/version.rb
CHANGED
data/lib/hot_module.rb
CHANGED
@@ -38,6 +38,11 @@ module HoTModuLe
|
|
38
38
|
@registered_elements
|
39
39
|
end
|
40
40
|
|
41
|
+
def self.register_element(component)
|
42
|
+
@registered_elements ||= Concurrent::Set.new
|
43
|
+
@registered_elements << component
|
44
|
+
end
|
45
|
+
|
41
46
|
# @param klass [Class]
|
42
47
|
# @return [void]
|
43
48
|
def self.included(klass)
|
@@ -98,7 +103,7 @@ module HoTModuLe
|
|
98
103
|
# @return [String]
|
99
104
|
def tag_name(value = nil)
|
100
105
|
@tag_name ||= begin
|
101
|
-
HoTModuLe.
|
106
|
+
HoTModuLe.register_element self
|
102
107
|
value
|
103
108
|
end
|
104
109
|
end
|