@@ -70,14 +70,14 @@ module Behaviour
7070
7171 # Array of behaviours and their construction parameters.
7272 #
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]]
8181 #
8282 # @see '' its source code
8383 def self . basic_behaviour_definition
@@ -88,17 +88,16 @@ def self.basic_behaviour_definition
8888
8989 # Array of behaviours and their construction parameters.
9090 #
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]]
102101 #
103102 # @see '' its source code
104103 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
111110
112111 # @see '' its source code
113112 def self . base ( on_error )
114- [ [ SetResults , [ on_error ] ] ,
113+ [ [ SetResults , on_error ] ,
115114 # 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 ]
119118 end
120119
121120 # @see '' its source code
122121 def self . linking
123- [ [ Linking , [ ] ] ]
122+ [ Linking ]
124123 end
125124
126125 # @see '' its source code
127126 def self . supervised
128- [ [ Pausing , [ ] ] ]
127+ [ Pausing ]
129128 end
130129
131130 # @see '' its source code
132131 def self . supervising ( handle = :reset! , strategy = :one_for_one )
133- [ [ Behaviour ::Supervising , [ handle , strategy ] ] ]
132+ [ [ Behaviour ::Supervising , handle , strategy ] ]
134133 end
135134
136135 # @see '' its source code
137136 def self . user_messages
138- [ [ Awaits , [ ] ] ,
139- [ ExecutesContext , [ ] ] ,
140- [ ErrorsOnUnknownMessage , [ ] ] ]
137+ [ Awaits ,
138+ ExecutesContext ,
139+ ErrorsOnUnknownMessage ]
141140 end
142141 end
143142 end
0 commit comments