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



69
70
71
# File 'lib/semmy/changelog.rb', line 69

def config
  @config
end

#optionsObject

Returns the value of attribute options

Returns:

  • (Object)

    the current value of options



69
70
71
# File 'lib/semmy/changelog.rb', line 69

def options
  @options
end

Instance Method Details

#call(contents) ⇒ Object



70
71
72
73
74
# File 'lib/semmy/changelog.rb', line 70

def call(contents)
  insert_before(version_line_matcher,
                contents,
                unreleased_section(contents))
end