Class: Dependabot::Composer::Version
- Inherits:
-
Version
- Object
- Version
- Dependabot::Composer::Version
- Extended by:
- T::Sig
- 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.
19 20 21 22 |
# File 'lib/dependabot/composer/version.rb', line 19 def initialize(version) @version_string = T.let(version.to_s, String) super end |
Instance Method Details
#to_s ⇒ Object
25 26 27 |
# File 'lib/dependabot/composer/version.rb', line 25 def to_s @version_string end |