Class: Flutter::Persistence::AbstractStorage Abstract
- Inherits:
-
Object
- Object
- Flutter::Persistence::AbstractStorage
- Defined in:
- lib/flutter/persistence.rb
Overview
Override this class to implement a custom storage
The abstract base storage.
To implement a custom storage, override the following methods:
Instance Method Summary collapse
-
#clear! ⇒ void
Clear any saved state in the underlying storage.
-
#initialize ⇒ AbstractStorage
constructor
A new instance of AbstractStorage.
-
#load! ⇒ void
If the storage was already persisted load the current state.
-
#persist! ⇒ void
Save the state of test & source mapping to the underlying storage.
-
#source_hints ⇒ Hash<String, Set<String>]
Mapping of +source file -> class or module.
-
#source_mapping ⇒ Hash<String, Hash<String, String>>
Mapping of +source file -> callable_id -> signature+.
-
#test_mapping ⇒ Hash<String, Hash<String, Set<String>>>
Mapping of +test_id -> source file -> callable_id+.
-
#update_source_mapping!(mapping, hints) ⇒ Object
Update #source_mapping.
-
#update_test_mapping!(mapping) ⇒ Object
Update #test_mapping.
Constructor Details
#initialize ⇒ AbstractStorage
Returns a new instance of AbstractStorage.
21 22 23 |
# File 'lib/flutter/persistence.rb', line 21 def initialize load! end |
Instance Method Details
#clear! ⇒ void
This method returns an undefined value.
Clear any saved state in the underlying storage
71 72 73 |
# File 'lib/flutter/persistence.rb', line 71 def clear! raise NotImplementedError end |
#load! ⇒ void
This method returns an undefined value.
If the storage was already persisted load the current state
77 78 79 |
# File 'lib/flutter/persistence.rb', line 77 def load! raise NotImplementedError end |
#persist! ⇒ void
This method returns an undefined value.
Save the state of test & source mapping to the underlying storage
65 66 67 |
# File 'lib/flutter/persistence.rb', line 65 def persist! raise NotImplementedError end |
#source_hints ⇒ Hash<String, Set<String>]
Mapping of +source file -> class or module
41 42 43 |
# File 'lib/flutter/persistence.rb', line 41 def source_hints raise NotImplementedError end |
#source_mapping ⇒ Hash<String, Hash<String, String>>
Mapping of +source file -> callable_id -> signature+
35 36 37 |
# File 'lib/flutter/persistence.rb', line 35 def source_mapping raise NotImplementedError end |
#test_mapping ⇒ Hash<String, Hash<String, Set<String>>>
Mapping of +test_id -> source file -> callable_id+
29 30 31 |
# File 'lib/flutter/persistence.rb', line 29 def test_mapping raise NotImplementedError end |
#update_source_mapping!(mapping, hints) ⇒ Object
Update #source_mapping
58 59 60 |
# File 'lib/flutter/persistence.rb', line 58 def update_source_mapping!(mapping, hints) raise NotImplementedError end |
#update_test_mapping!(mapping) ⇒ Object
Update #test_mapping
49 50 51 |
# File 'lib/flutter/persistence.rb', line 49 def update_test_mapping!(mapping) raise NotImplementedError end |