Class: Symian::MemoryBackend
- Inherits:
-
Object
- Object
- Symian::MemoryBackend
- Defined in:
- lib/symian/trace_collector.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize ⇒ MemoryBackend
constructor
A new instance of MemoryBackend.
- #save_and_close ⇒ Object
Constructor Details
#initialize ⇒ MemoryBackend
Returns a new instance of MemoryBackend.
37 38 39 40 41 |
# File 'lib/symian/trace_collector.rb', line 37 def initialize TraceCollector::ATTRIBUTES.each do |attr| instance_variable_set("@#{attr}_storage", []) end end |
Instance Method Details
#save_and_close ⇒ Object
70 71 72 |
# File 'lib/symian/trace_collector.rb', line 70 def save_and_close # raise NotImplementedError, 'A trace with memory backend cannot be saved!' end |