Class: Semmy::Changelog::ReplaceMinorStableBranchWithMajorStableBranch
- Inherits:
-
Struct
- Object
- Struct
- Semmy::Changelog::ReplaceMinorStableBranchWithMajorStableBranch
- 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
154 155 156 |
# File 'lib/semmy/changelog.rb', line 154 def config @config end |
#options ⇒ Object
Returns the value of attribute options
154 155 156 |
# File 'lib/semmy/changelog.rb', line 154 def @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([:version]), major_stable_branch([:version])) end |