Class: MarkdownRecord::FileSorting::SemVerSorter
- Defined in:
- lib/markdown_record/file_sorting/sem_ver_sorter.rb
Defined Under Namespace
Classes: SemVer
Instance Method Summary collapse
-
#initialize(sort_regex = /(\d+(?:_\d+)*)(?:_|$)/) ⇒ SemVerSorter
constructor
A new instance of SemVerSorter.
- #to_sort_value(value) ⇒ Object
Methods inherited from Base
#path_to_sort_value, #remove_prefix
Constructor Details
#initialize(sort_regex = /(\d+(?:_\d+)*)(?:_|$)/) ⇒ SemVerSorter
Returns a new instance of SemVerSorter.
4 5 6 |
# File 'lib/markdown_record/file_sorting/sem_ver_sorter.rb', line 4 def initialize(sort_regex = /(\d+(?:_\d+)*)(?:_|$)/) super(sort_regex) end |