Class: Devist::Extractor
- Inherits:
-
Object
- Object
- Devist::Extractor
- Defined in:
- lib/devist/extractor.rb
Overview
extractor.rb This file is a part of the devist package. Halis Duraki <[email protected]>
The extractor class extracts all necessary elements from the line, or changelog revision. All methods shall be static.
Class Method Summary collapse
Class Method Details
.extract_change(line) ⇒ Object
16 17 18 |
# File 'lib/devist/extractor.rb', line 16 def extract_change(line) line.split(': ')[-1] end |
.extract_info(line) ⇒ Object
20 21 22 |
# File 'lib/devist/extractor.rb', line 20 def extract_info(line) line.split(': ')[-1] end |
.extract_version(line) ⇒ Object
12 13 14 |
# File 'lib/devist/extractor.rb', line 12 def extract_version(line) line[/n (.*) of/, 1] end |