Class: Actor::Messaging::Writer::Substitute

Inherits:
Object
  • Object
show all
Defined in:
lib/actor/messaging/writer/substitute.rb

Defined Under Namespace

Modules: Assertions

Instance Method Summary collapse

Instance Method Details

#call(message) ⇒ Object



5
6
7
# File 'lib/actor/messaging/writer/substitute.rb', line 5

def call message
  messages << message
end

#messagesObject



9
10
11
# File 'lib/actor/messaging/writer/substitute.rb', line 9

def messages
  @messages ||= []
end