Class: Dependabot::Composer::Version

Inherits:
Gem::Version
  • Object
show all
Defined in:
lib/dependabot/composer/version.rb

Instance Method Summary collapse

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_sObject



18
19
20
# File 'lib/dependabot/composer/version.rb', line 18

def to_s
  @version_string
end