Class: Concurrent::Actress::Envelope
- Inherits:
-
Struct
- Object
- Struct
- Concurrent::Actress::Envelope
- Includes:
- TypeCheck
- Defined in:
- lib/concurrent/actress/envelope.rb
Instance Attribute Summary collapse
-
#ivar ⇒ Object
Returns the value of attribute ivar.
-
#message ⇒ Object
Returns the value of attribute message.
-
#sender ⇒ Object
Returns the value of attribute sender.
Instance Method Summary collapse
-
#initialize(message, ivar, sender) ⇒ Envelope
constructor
A new instance of Envelope.
- #reject!(error) ⇒ Object
- #sender_path ⇒ Object
Methods included from TypeCheck
#Child!, #Child?, #Match!, #Match?, #Type!, #Type?
Constructor Details
Instance Attribute Details
#ivar ⇒ Object
Returns the value of attribute ivar
3 4 5 |
# File 'lib/concurrent/actress/envelope.rb', line 3 def ivar @ivar end |
#message ⇒ Object
Returns the value of attribute message
3 4 5 |
# File 'lib/concurrent/actress/envelope.rb', line 3 def @message end |
#sender ⇒ Object
Returns the value of attribute sender
3 4 5 |
# File 'lib/concurrent/actress/envelope.rb', line 3 def sender @sender end |
Instance Method Details
#reject!(error) ⇒ Object
20 21 22 |
# File 'lib/concurrent/actress/envelope.rb', line 20 def reject!(error) ivar.fail error unless ivar.nil? end |
#sender_path ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/concurrent/actress/envelope.rb', line 12 def sender_path if sender.is_a? Reference sender.path else sender.to_s end end |