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