@@ -70,14 +70,14 @@ module Behaviour
70
70
71
71
# Array of behaviours and their construction parameters.
72
72
#
73
- # [[Behaviour::SetResults, [ :terminate!] ],
74
- # [Behaviour::RemovesChild, [] ],
75
- # [Behaviour::Termination, [] ],
76
- # [Behaviour::TerminatesChildren, [] ],
77
- # [Behaviour::Linking, [] ],
78
- # [Behaviour::Awaits, [] ],
79
- # [Behaviour::ExecutesContext, [] ],
80
- # [Behaviour::ErrorsOnUnknownMessage, [] ]]
73
+ # [[Behaviour::SetResults, :terminate!],
74
+ # [Behaviour::RemovesChild],
75
+ # [Behaviour::Termination],
76
+ # [Behaviour::TerminatesChildren],
77
+ # [Behaviour::Linking],
78
+ # [Behaviour::Awaits],
79
+ # [Behaviour::ExecutesContext],
80
+ # [Behaviour::ErrorsOnUnknownMessage]]
81
81
#
82
82
# @see '' its source code
83
83
def self . basic_behaviour_definition
@@ -88,17 +88,16 @@ def self.basic_behaviour_definition
88
88
89
89
# Array of behaviours and their construction parameters.
90
90
#
91
- # [[Behaviour::SetResults, [:pause!]],
92
- # [Behaviour::RemovesChild, []],
93
- # [Behaviour::Termination, []],
94
- # [Behaviour::TerminatesChildren, []],
95
- # [Behaviour::Linking, []],
96
- # [Behaviour::Supervised, []],
97
- # [Behaviour::Pausing, []],
98
- # [Behaviour::Supervising, [:reset!, :one_for_one]],
99
- # [Behaviour::Awaits, []],
100
- # [Behaviour::ExecutesContext, []],
101
- # [Behaviour::ErrorsOnUnknownMessage, []]]
91
+ # [[Behaviour::SetResults, :pause!],
92
+ # [Behaviour::RemovesChild],
93
+ # [Behaviour::Termination],
94
+ # [Behaviour::TerminatesChildren],
95
+ # [Behaviour::Linking],
96
+ # [Behaviour::Pausing],
97
+ # [Behaviour::Supervising, :reset!, :one_for_one],
98
+ # [Behaviour::Awaits],
99
+ # [Behaviour::ExecutesContext],
100
+ # [Behaviour::ErrorsOnUnknownMessage]]
102
101
#
103
102
# @see '' its source code
104
103
def self . restarting_behaviour_definition ( handle = :reset! , strategy = :one_for_one )
@@ -111,33 +110,33 @@ def self.restarting_behaviour_definition(handle = :reset!, strategy = :one_for_o
111
110
112
111
# @see '' its source code
113
112
def self . base ( on_error )
114
- [ [ SetResults , [ on_error ] ] ,
113
+ [ [ SetResults , on_error ] ,
115
114
# has to be before Termination to be able to remove children form terminated actor
116
- [ RemovesChild , [ ] ] ,
117
- [ Termination , [ ] ] ,
118
- [ TerminatesChildren , [ ] ] ]
115
+ RemovesChild ,
116
+ Termination ,
117
+ TerminatesChildren ]
119
118
end
120
119
121
120
# @see '' its source code
122
121
def self . linking
123
- [ [ Linking , [ ] ] ]
122
+ [ Linking ]
124
123
end
125
124
126
125
# @see '' its source code
127
126
def self . supervised
128
- [ [ Pausing , [ ] ] ]
127
+ [ Pausing ]
129
128
end
130
129
131
130
# @see '' its source code
132
131
def self . supervising ( handle = :reset! , strategy = :one_for_one )
133
- [ [ Behaviour ::Supervising , [ handle , strategy ] ] ]
132
+ [ [ Behaviour ::Supervising , handle , strategy ] ]
134
133
end
135
134
136
135
# @see '' its source code
137
136
def self . user_messages
138
- [ [ Awaits , [ ] ] ,
139
- [ ExecutesContext , [ ] ] ,
140
- [ ErrorsOnUnknownMessage , [ ] ] ]
137
+ [ Awaits ,
138
+ ExecutesContext ,
139
+ ErrorsOnUnknownMessage ]
141
140
end
142
141
end
143
142
end
0 commit comments