class GitHubChangelogGenerator::FileParserChooser
Public Class Methods
new(options)
click to toggle source
# File lib/github_changelog_generator/parser_file.rb, line 9 def initialize(options) @options = options @config_file = Pathname.new(options[:config_file]) end
Public Instance Methods
parse!(_argv)
click to toggle source
# File lib/github_changelog_generator/parser_file.rb, line 14 def parse!(_argv) return nil unless (path = resolve_path) ParserFile.new(@options, File.open(path)).parse! end
resolve_path()
click to toggle source
# File lib/github_changelog_generator/parser_file.rb, line 20 def resolve_path return @config_file if @config_file.exist? path = @config_file.expand_path return path if File.exist?(path) nil end