Class: Pbmenv::VersionObject
- Inherits:
-
Object
- Object
- Pbmenv::VersionObject
- Defined in:
- lib/pbmenv/version_object.rb
Instance Method Summary collapse
- #current_version? ⇒ Boolean
-
#initialize(version_name:, is_latest:, is_current:) ⇒ VersionObject
constructor
A new instance of VersionObject.
- #latest_version? ⇒ Boolean
-
#name ⇒ Object
alias.
- #version_name ⇒ String
Constructor Details
#initialize(version_name:, is_latest:, is_current:) ⇒ VersionObject
Returns a new instance of VersionObject.
6 7 8 9 10 |
# File 'lib/pbmenv/version_object.rb', line 6 def initialize(version_name: , is_latest: , is_current: ) @version_name = version_name @is_latest = is_latest @is_current = is_current end |
Instance Method Details
#current_version? ⇒ Boolean
23 24 25 |
# File 'lib/pbmenv/version_object.rb', line 23 def current_version? @is_current end |
#latest_version? ⇒ Boolean
28 29 30 |
# File 'lib/pbmenv/version_object.rb', line 28 def latest_version? @is_latest end |
#name ⇒ Object
alias
18 19 20 |
# File 'lib/pbmenv/version_object.rb', line 18 def name version_name end |
#version_name ⇒ String
13 14 15 |
# File 'lib/pbmenv/version_object.rb', line 13 def version_name @version_name end |