Class: Semmy::Changelog::InsertUnreleasedSection

Inherits:
Struct
  • Object
show all
Defined in:
lib/semmy/changelog.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#configObject

Returns the value of attribute config

Returns:

  • (Object)

    the current value of 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