ntl-actor 1.2.5 → 1.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/actor/messaging/message.rb +22 -3
- 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: 5e83f50ed929d11e671404dbe64bb5114b8240bf41f1b79de9967bf145ecd6d7
|
4
|
+
data.tar.gz: 1ab2b82d05588e6401b370a16cf68779e70d53db703362929282ef5ff6ac6940
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a2f4a4e916d2ddae374b5d23d3b6efc04f965a25b48c863d25e8228352111a9bc02490084dfcc7d64b1726be0b574d9235262f70209c3a97348be7e9e59ace73
|
7
|
+
data.tar.gz: ec4f5b7abb21465be9961758b3839781f63b7db9f8dfbd3a210b84904b2ec7187f5436dd83887b1886a114f55ad8cd197b1fc932ce83c41f9d91438e1ef0470e
|
@@ -4,7 +4,6 @@ module Actor
|
|
4
4
|
def self.included cls
|
5
5
|
cls.class_exec do
|
6
6
|
extend Matcher
|
7
|
-
extend MessageName
|
8
7
|
|
9
8
|
include MessageName
|
10
9
|
end
|
@@ -34,8 +33,28 @@ module Actor
|
|
34
33
|
end
|
35
34
|
|
36
35
|
module MessageName
|
37
|
-
def
|
38
|
-
|
36
|
+
def self.included cls
|
37
|
+
cls.class_exec do
|
38
|
+
extend ClassMethod
|
39
|
+
|
40
|
+
include InstanceMethod
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
def self.extended receiver
|
45
|
+
receiver.extend ClassMethod
|
46
|
+
end
|
47
|
+
|
48
|
+
module InstanceMethod
|
49
|
+
def message_name
|
50
|
+
self.class.message_name
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
module ClassMethod
|
55
|
+
def message_name
|
56
|
+
Name.get name
|
57
|
+
end
|
39
58
|
end
|
40
59
|
end
|
41
60
|
end
|