Class: Droonga::Test::StubPlanner
- Inherits:
-
Object
- Object
- Droonga::Test::StubPlanner
- Defined in:
- lib/droonga/test/stub_planner.rb
Instance Attribute Summary collapse
-
#messages ⇒ Object
readonly
Returns the value of attribute messages.
Instance Method Summary collapse
- #distribute(message) ⇒ Object
-
#initialize ⇒ StubPlanner
constructor
A new instance of StubPlanner.
Constructor Details
#initialize ⇒ StubPlanner
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
#messages ⇒ Object (readonly)
Returns the value of attribute messages.
21 22 23 |
# File 'lib/droonga/test/stub_planner.rb', line 21 def @messages end |
Instance Method Details
#distribute(message) ⇒ Object
26 27 28 |
# File 'lib/droonga/test/stub_planner.rb', line 26 def distribute() @messages << end |