Class: Actor::Controls::Actor::ConstructorArguments
- Inherits:
-
StopsImmediately
- Object
- Example
- StopsImmediately
- Actor::Controls::Actor::ConstructorArguments
- Defined in:
- lib/actor/controls/actor.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#block ⇒ Object
readonly
Returns the value of attribute block.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#keyreq ⇒ Object
readonly
Returns the value of attribute keyreq.
-
#opt ⇒ Object
readonly
Returns the value of attribute opt.
-
#req ⇒ Object
readonly
Returns the value of attribute req.
Attributes included from Actor
#actor_address, #actor_state, #reader
Instance Method Summary collapse
-
#initialize(req, opt = nil, keyreq:, key: nil, &block) ⇒ ConstructorArguments
constructor
A new instance of ConstructorArguments.
Methods inherited from StopsImmediately
Methods inherited from Example
#action, #action_executed?, #handle, #handled_messages
Methods included from Actor
#action, #actor_statistics, #handle, #handle_system_message, included, #run_loop
Constructor Details
#initialize(req, opt = nil, keyreq:, key: nil, &block) ⇒ ConstructorArguments
Returns a new instance of ConstructorArguments.
55 56 57 |
# File 'lib/actor/controls/actor.rb', line 55 def initialize req, opt=nil, keyreq:, key: nil, &block @req, @opt, @keyreq, @key, @block = req, opt, keyreq, key, block end |
Instance Attribute Details
#block ⇒ Object (readonly)
Returns the value of attribute block.
53 54 55 |
# File 'lib/actor/controls/actor.rb', line 53 def block @block end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
53 54 55 |
# File 'lib/actor/controls/actor.rb', line 53 def key @key end |
#keyreq ⇒ Object (readonly)
Returns the value of attribute keyreq.
53 54 55 |
# File 'lib/actor/controls/actor.rb', line 53 def keyreq @keyreq end |
#opt ⇒ Object (readonly)
Returns the value of attribute opt.
53 54 55 |
# File 'lib/actor/controls/actor.rb', line 53 def opt @opt end |
#req ⇒ Object (readonly)
Returns the value of attribute req.
53 54 55 |
# File 'lib/actor/controls/actor.rb', line 53 def req @req end |