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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 54bf7a145c5b9294bc00a490478ba97a56155b82d00f3c53e99db52399b49e91
4
- data.tar.gz: fd4f01ec0c8fc8c92470fdef40a4aecb34e17eddb7b2dd5ea69dacb28ea2f4d2
3
+ metadata.gz: 5e83f50ed929d11e671404dbe64bb5114b8240bf41f1b79de9967bf145ecd6d7
4
+ data.tar.gz: 1ab2b82d05588e6401b370a16cf68779e70d53db703362929282ef5ff6ac6940
5
5
  SHA512:
6
- metadata.gz: e6397f15b0852f6f24c6bf5d8304f71e8b38ff75a0aedc7173302167ec2110d737480726f291fca8c2fb583d5767b2df801d0a42dfd2f2410374fd046ac0e024
7
- data.tar.gz: 337e33887f2a767e61a7f168998adbba1e534d2dc81dcaf1a721305bf8de53749ac712b2b817b338c9ea5b8132067cb7f3db1a714ed451c9922b72942d5e20fb
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 message_name
38
- Name.get name
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ntl-actor
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.5
4
+ version: 1.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Ladd