Class: Semmy::Changelog::ReplaceMinorStableBranchWithMajorStableBranch

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



154
155
156
# File 'lib/semmy/changelog.rb', line 154

def config
  @config
end

#optionsObject

Returns the value of attribute options

Returns:

  • (Object)

    the current value of options



154
155
156
# File 'lib/semmy/changelog.rb', line 154

def options
  @options
end

Instance Method Details

#call(contents) ⇒ Object



155
156
157
158
# File 'lib/semmy/changelog.rb', line 155

def call(contents)
  contents.gsub(minor_stable_branch(options[:version]),
                major_stable_branch(options[:version]))
end