class PasteRepository
- PasteRepository
- Reference
- Object
Overview
The repository for pastes.
Defined in:
paste_repository.crConstructors
-
.new(pastes_directory : Path)
Initializes a new repository for pastes.
Instance Method Summary
-
#count
Counts the pastes
-
#retrieve(id : String)
Retrieves a paste by the ID.
-
#store(id : String, contents : String)
Stores a new paste with given ID and contents.