Class: Actor::Controls::Actor::ConstructorArguments

Inherits:
StopsImmediately show all
Defined in:
lib/actor/controls/actor.rb

Direct Known Subclasses

FactoryMethod

Instance Attribute Summary collapse

Attributes included from Actor

#actor_address, #actor_state, #reader

Instance Method Summary collapse

Methods inherited from StopsImmediately

#action

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

#blockObject (readonly)

Returns the value of attribute block.



53
54
55
# File 'lib/actor/controls/actor.rb', line 53

def block
  @block
end

#keyObject (readonly)

Returns the value of attribute key.



53
54
55
# File 'lib/actor/controls/actor.rb', line 53

def key
  @key
end

#keyreqObject (readonly)

Returns the value of attribute keyreq.



53
54
55
# File 'lib/actor/controls/actor.rb', line 53

def keyreq
  @keyreq
end

#optObject (readonly)

Returns the value of attribute opt.



53
54
55
# File 'lib/actor/controls/actor.rb', line 53

def opt
  @opt
end

#reqObject (readonly)

Returns the value of attribute req.



53
54
55
# File 'lib/actor/controls/actor.rb', line 53

def req
  @req
end