Class: Semmy::Changelog::CloseSection
- Inherits:
-
Struct
- Object
- Struct
- Semmy::Changelog::CloseSection
- Defined in:
- lib/semmy/changelog.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
Returns the value of attribute config.
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
Instance Attribute Details
#config ⇒ Object
Returns the value of attribute config
9 10 11 |
# File 'lib/semmy/changelog.rb', line 9 def config @config end |
#options ⇒ Object
Returns the value of attribute options
9 10 11 |
# File 'lib/semmy/changelog.rb', line 9 def @options end |
Instance Method Details
#call(contents) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/semmy/changelog.rb', line 10 def call(contents) contents.dup.tap do |result| result.gsub!(unreleased_section_matcher, version_header) || fail(InsertPointNotFound, <<-END.unindent) Could not find insert point for section heading in: #{contents} END end end |