Class: Droonga::Test::StubPlanner

Inherits:
Object
  • Object
show all
Defined in:
lib/droonga/test/stub_planner.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeStubPlanner

Returns a new instance of StubPlanner.



22
23
24
# File 'lib/droonga/test/stub_planner.rb', line 22

def initialize
  @messages = []
end

Instance Attribute Details

#messagesObject (readonly)

Returns the value of attribute messages.



21
22
23
# File 'lib/droonga/test/stub_planner.rb', line 21

def messages
  @messages
end

Instance Method Details

#distribute(message) ⇒ Object



26
27
28
# File 'lib/droonga/test/stub_planner.rb', line 26

def distribute(message)
  @messages << message
end