Class: Dependabot::Composer::Version

Inherits:
Version
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/dependabot/composer/version.rb

Instance Method Summary collapse

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_sObject



25
26
27
# File 'lib/dependabot/composer/version.rb', line 25

def to_s
  @version_string
end