Class: Logux::Test::Store
- Inherits:
-
Object
- Object
- Logux::Test::Store
- Includes:
- Singleton
- Defined in:
- lib/logux/test/store.rb
Instance Method Summary collapse
Instance Method Details
#add(params) ⇒ Object
8 9 10 |
# File 'lib/logux/test/store.rb', line 8 def add(params) data << params end |
#data ⇒ Object
12 13 14 |
# File 'lib/logux/test/store.rb', line 12 def data @data ||= [] end |
#reset! ⇒ Object
16 17 18 |
# File 'lib/logux/test/store.rb', line 16 def reset! @data = [] end |