Class: Actor::Messaging::Write::Substitute
- Inherits:
-
Object
- Object
- Actor::Messaging::Write::Substitute
- Defined in:
- lib/actor/messaging/write/substitute.rb
Defined Under Namespace
Modules: Assertions Classes: Record
Instance Attribute Summary collapse
-
#records ⇒ Object
readonly
Returns the value of attribute records.
Instance Method Summary collapse
- #call(message, address) ⇒ Object
-
#initialize ⇒ Substitute
constructor
A new instance of Substitute.
Constructor Details
#initialize ⇒ Substitute
Returns a new instance of Substitute.
7 8 9 |
# File 'lib/actor/messaging/write/substitute.rb', line 7 def initialize @records = [] end |
Instance Attribute Details
#records ⇒ Object (readonly)
Returns the value of attribute records.
5 6 7 |
# File 'lib/actor/messaging/write/substitute.rb', line 5 def records @records end |
Instance Method Details
#call(message, address) ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/actor/messaging/write/substitute.rb', line 11 def call , address record = Record.new , address records << record record end |