Class: Semmy::Changelog::InsertUnreleasedSection
- Inherits:
-
Struct
- Object
- Struct
- Semmy::Changelog::InsertUnreleasedSection
- Defined in:
- lib/semmy/changelog.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
Returns the value of attribute config.
Instance Method Summary collapse
Instance Attribute Details
#config ⇒ Object
Returns the value of attribute config
135 136 137 |
# File 'lib/semmy/changelog.rb', line 135 def config @config end |
Instance Method Details
#call(contents) ⇒ Object
136 137 138 139 140 |
# File 'lib/semmy/changelog.rb', line 136 def call(contents) insert_before(Changelog.version_line_matcher(config), contents, config.changelog_unreleased_section_heading << "\n") end |