Class: FeduxOrgStdlib::VersionManagement::Version
- Inherits:
-
Object
- Object
- FeduxOrgStdlib::VersionManagement::Version
- Extended by:
- Forwardable
- Defined in:
- lib/fedux_org_stdlib/version_management/version.rb
Instance Method Summary collapse
- #bump(type) ⇒ Object
-
#initialize(version) ⇒ Version
constructor
A new instance of Version.
- #update(*args) ⇒ Object
Constructor Details
#initialize(version) ⇒ Version
Returns a new instance of Version.
12 13 14 |
# File 'lib/fedux_org_stdlib/version_management/version.rb', line 12 def initialize(version) @version = Versionomy.parse(version) end |
Instance Method Details
#bump(type) ⇒ Object
20 21 22 |
# File 'lib/fedux_org_stdlib/version_management/version.rb', line 20 def bump(type) @version = @version.bump(type) end |
#update(*args) ⇒ Object
16 17 18 |
# File 'lib/fedux_org_stdlib/version_management/version.rb', line 16 def update( *args ) initialize( *args ) end |