Class: Jeweler::Commands::Version::Write
- Defined in:
- lib/jeweler/commands/version/write.rb
Instance Attribute Summary collapse
-
#major ⇒ Object
Returns the value of attribute major.
-
#minor ⇒ Object
Returns the value of attribute minor.
-
#patch ⇒ Object
Returns the value of attribute patch.
Attributes inherited from Base
#commit, #gemspec, #repo, #version_helper
Instance Method Summary collapse
Methods inherited from Base
build_for, #commit_version, #run
Instance Attribute Details
#major ⇒ Object
Returns the value of attribute major.
5 6 7 |
# File 'lib/jeweler/commands/version/write.rb', line 5 def major @major end |
#minor ⇒ Object
Returns the value of attribute minor.
5 6 7 |
# File 'lib/jeweler/commands/version/write.rb', line 5 def minor @minor end |
#patch ⇒ Object
Returns the value of attribute patch.
5 6 7 |
# File 'lib/jeweler/commands/version/write.rb', line 5 def patch @patch end |
Instance Method Details
#update_version ⇒ Object
6 7 8 |
# File 'lib/jeweler/commands/version/write.rb', line 6 def update_version version_helper.update_to major, minor, patch end |