Class: Dependabot::Composer::Version

Inherits:
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.



14
15
16
17
# File 'lib/dependabot/composer/version.rb', line 14

def initialize(version)
  @version_string = version.to_s
  super
end

Instance Method Details

#to_sObject



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

def to_s
  @version_string
end