Class: Rambling::Trie::Serializers::Serializer
- Inherits:
-
Object
- Object
- Rambling::Trie::Serializers::Serializer
- Defined in:
- lib/rambling/trie/serializers/serializer.rb
Overview
Base class for all serializers.
Instance Method Summary collapse
-
#dump(_contents, _filepath) ⇒ Numeric
abstract
Dumps contents into a specified filepath.
-
#load(_filepath) ⇒ TContents
abstract
Loads contents from a specified filepath.
Instance Method Details
#dump(_contents, _filepath) ⇒ Numeric
This method is abstract.
Subclass and override #dump to output the desired format.
Dumps contents into a specified filepath.
25 26 27 |
# File 'lib/rambling/trie/serializers/serializer.rb', line 25 def dump _contents, _filepath not_implemented end |
#load(_filepath) ⇒ TContents
This method is abstract.
Subclass and override #load to parse the desired format.
Loads contents from a specified filepath.
15 16 17 |
# File 'lib/rambling/trie/serializers/serializer.rb', line 15 def load _filepath not_implemented end |