Class: Reissue::Parser

Inherits:
Object
  • Object
show all
Defined in:
lib/reissue/parser.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(changelog) ⇒ Parser

Returns a new instance of Parser.



10
11
12
# File 'lib/reissue/parser.rb', line 10

def initialize(changelog)
  @changelog = changelog
end

Class Method Details

.parse(changelog) ⇒ Object



6
7
8
# File 'lib/reissue/parser.rb', line 6

def self.parse(changelog)
  new(changelog).parse
end

Instance Method Details

#parseObject



14
15
16
# File 'lib/reissue/parser.rb', line 14

def parse
  Markdown.parse(@changelog).to_h
end