Class: GitHubChangelogGenerator::Options
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- GitHubChangelogGenerator::Options
- Defined in:
- lib/github_changelog_generator/options.rb
Constant Summary collapse
- UnsupportedOptionError =
Class.new(ArgumentError)
- KNOWN_OPTIONS =
[ :add_issues_wo_labels, :add_pr_wo_labels, :author, :base, :between_tags, :bug_labels, :bug_prefix, :cache_file, :cache_log, :compare_link, :date_format, :due_tag, :enhancement_labels, :enhancement_prefix, :exclude_labels, :exclude_tags, :exclude_tags_regex, :filter_issues_by_milestone, :frontmatter, :future_release, :git_remote, :github_endpoint, :github_site, :header, :http_cache, :include_labels, :issue_prefix, :issue_line_labels, :issues, :max_issues, :merge_prefix, :output, :project, :pulls, :release_branch, :release_url, :simple_list, :since_tag, :token, :unreleased, :unreleased_label, :unreleased_only, :user, :usernames_as_github_logins, :verbose ]
- THESE_ARE_DIFFERENT =
[ :tag1, :tag2 ]
Instance Method Summary collapse
- #[]=(key, val) ⇒ Object
-
#initialize(values) ⇒ Options
constructor
A new instance of Options.
- #to_hash ⇒ Object
Constructor Details
#initialize(values) ⇒ Options
Returns a new instance of Options.
60 61 62 63 |
# File 'lib/github_changelog_generator/options.rb', line 60 def initialize(values) super(values) .any? && raise(UnsupportedOptionError, .inspect) end |
Instance Method Details
#[]=(key, val) ⇒ Object
65 66 67 68 |
# File 'lib/github_changelog_generator/options.rb', line 65 def []=(key, val) supported_option?(key) || raise(UnsupportedOptionError, key.inspect) values[key] = val end |
#to_hash ⇒ Object
70 71 72 |
# File 'lib/github_changelog_generator/options.rb', line 70 def to_hash values end |