Class: Rufio::BookmarkStorage
- Inherits:
-
Object
- Object
- Rufio::BookmarkStorage
- Defined in:
- lib/rufio/bookmark_storage.rb
Overview
ブックマークストレージの基底クラス
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(file_path) ⇒ BookmarkStorage
constructor
A new instance of BookmarkStorage.
- #load ⇒ Object
- #save(_bookmarks) ⇒ Object
Constructor Details
#initialize(file_path) ⇒ BookmarkStorage
Returns a new instance of BookmarkStorage.
11 12 13 |
# File 'lib/rufio/bookmark_storage.rb', line 11 def initialize(file_path) @file_path = file_path end |
Instance Method Details
#load ⇒ Object
15 16 17 |
# File 'lib/rufio/bookmark_storage.rb', line 15 def load raise NotImplementedError, 'Subclasses must implement #load' end |
#save(_bookmarks) ⇒ Object
19 20 21 |
# File 'lib/rufio/bookmark_storage.rb', line 19 def save(_bookmarks) raise NotImplementedError, 'Subclasses must implement #save' end |