Class: Semmy::Changelog::UpdateForMinor

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



73
74
75
# File 'lib/semmy/changelog.rb', line 73

def config
  @config
end

#optionsObject

Returns the value of attribute options

Returns:

  • (Object)

    the current value of options



73
74
75
# File 'lib/semmy/changelog.rb', line 73

def options
  @options
end

Instance Method Details

#call(contents) ⇒ Object



74
75
76
77
78
# File 'lib/semmy/changelog.rb', line 74

def call(contents)
  replace_starting_at(Changelog.version_line_matcher(config),
                      contents,
                      unreleased_section)
end