Class: GemToys::Template
- Inherits:
-
Object
- Object
- GemToys::Template
- Includes:
- Toys::Template
- Defined in:
- lib/gem_toys/template.rb,
lib/gem_toys/template/release.rb,
lib/gem_toys/template/versions.rb,
lib/gem_toys/template/common_code.rb,
lib/gem_toys/template/release/git.rb,
lib/gem_toys/template/release/changelog.rb
Overview
Template with gem tools, should be expanded in toys file
Defined Under Namespace
Modules: CommonCode Classes: Release, Versions
Instance Attribute Summary collapse
-
#changelog_file_name ⇒ Object
readonly
Returns the value of attribute changelog_file_name.
-
#unreleased_title ⇒ Object
readonly
Returns the value of attribute unreleased_title.
-
#version_file_path ⇒ Object
readonly
Returns the value of attribute version_file_path.
-
#version_tag_prefix ⇒ Object
readonly
Returns the value of attribute version_tag_prefix.
Instance Method Summary collapse
-
#initialize(changelog_file_name: 'CHANGELOG.md', version_file_path: nil, version_tag_prefix: 'v', unreleased_title: '## Unreleased') ⇒ Template
constructor
A new instance of Template.
Constructor Details
#initialize(changelog_file_name: 'CHANGELOG.md', version_file_path: nil, version_tag_prefix: 'v', unreleased_title: '## Unreleased') ⇒ Template
Returns a new instance of Template.
14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/gem_toys/template.rb', line 14 def initialize( changelog_file_name: 'CHANGELOG.md', version_file_path: nil, version_tag_prefix: 'v', unreleased_title: '## Unreleased' ) @changelog_file_name = changelog_file_name @version_file_path = version_file_path @version_tag_prefix = version_tag_prefix @unreleased_title = unreleased_title end |
Instance Attribute Details
#changelog_file_name ⇒ Object (readonly)
Returns the value of attribute changelog_file_name.
12 13 14 |
# File 'lib/gem_toys/template.rb', line 12 def changelog_file_name @changelog_file_name end |
#unreleased_title ⇒ Object (readonly)
Returns the value of attribute unreleased_title.
12 13 14 |
# File 'lib/gem_toys/template.rb', line 12 def unreleased_title @unreleased_title end |
#version_file_path ⇒ Object (readonly)
Returns the value of attribute version_file_path.
12 13 14 |
# File 'lib/gem_toys/template.rb', line 12 def version_file_path @version_file_path end |
#version_tag_prefix ⇒ Object (readonly)
Returns the value of attribute version_tag_prefix.
12 13 14 |
# File 'lib/gem_toys/template.rb', line 12 def version_tag_prefix @version_tag_prefix end |