Class: GitHubChangelogGenerator::ParserFile

Inherits:
Object
  • Object
show all
Defined in:
lib/github_changelog_generator/parser_file.rb

Constant Summary collapse

FILENAME =
".github_changelog_generator"

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ ParserFile

Returns a new instance of ParserFile.



9
10
11
# File 'lib/github_changelog_generator/parser_file.rb', line 9

def initialize(options)
  @options = options
end

Instance Method Details

#parse!Object

Destructively change @options using data in configured options file.



14
15
16
# File 'lib/github_changelog_generator/parser_file.rb', line 14

def parse!
  file.each_line { |line| parse_line!(line) } if file.exist?
end