Class: Mutiny::Mutants::Storage::MutantFileName
- Inherits:
-
Object
- Object
- Mutiny::Mutants::Storage::MutantFileName
- Defined in:
- lib/mutiny/mutants/storage/mutant_file_name.rb
Instance Method Summary collapse
Instance Method Details
#deserialise(path) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/mutiny/mutants/storage/mutant_file_name.rb', line 9 def deserialise(path) { subject: { path: path_without_index(path) }, index: index_of(path) } end |
#serialise(mutant) ⇒ Object
5 6 7 |
# File 'lib/mutiny/mutants/storage/mutant_file_name.rb', line 5 def serialise(mutant) path_with_index(mutant.subject.relative_path, mutant.index) end |