Class: Dependabot::Composer::Version
- Inherits:
-
Gem::Version
- Object
- Gem::Version
- Dependabot::Composer::Version
- Defined in:
- lib/dependabot/composer/version.rb
Instance Method Summary collapse
-
#initialize(version) ⇒ Version
constructor
A new instance of Version.
- #to_s ⇒ Object
Constructor Details
#initialize(version) ⇒ Version
Returns a new instance of Version.
13 14 15 16 |
# File 'lib/dependabot/composer/version.rb', line 13 def initialize(version) @version_string = version.to_s super end |
Instance Method Details
#to_s ⇒ Object
18 19 20 |
# File 'lib/dependabot/composer/version.rb', line 18 def to_s @version_string end |