Class: Dependabot::NpmAndYarn::Language
- Inherits:
-
Ecosystem::VersionManager
- Object
- Ecosystem::VersionManager
- Dependabot::NpmAndYarn::Language
- Extended by:
- T::Sig
- Defined in:
- lib/dependabot/npm_and_yarn/language.rb
Constant Summary collapse
- NAME =
"node"- SUPPORTED_VERSIONS =
T.let([].freeze, T::Array[Dependabot::Version])
- DEPRECATED_VERSIONS =
T.let([].freeze, T::Array[Dependabot::Version])
Instance Method Summary collapse
- #deprecated? ⇒ Boolean
-
#initialize(detected_version: nil, raw_version: nil, requirement: nil) ⇒ Language
constructor
A new instance of Language.
- #unsupported? ⇒ Boolean
Constructor Details
#initialize(detected_version: nil, raw_version: nil, requirement: nil) ⇒ Language
24 25 26 27 28 29 30 31 32 33 |
# File 'lib/dependabot/npm_and_yarn/language.rb', line 24 def initialize(detected_version: nil, raw_version: nil, requirement: nil) super( name: NAME, detected_version: detected_version ? Version.new(detected_version) : nil, version: raw_version ? Version.new(raw_version) : nil, deprecated_versions: DEPRECATED_VERSIONS, supported_versions: SUPPORTED_VERSIONS, requirement: requirement ) end |
Instance Method Details
#deprecated? ⇒ Boolean
36 37 38 |
# File 'lib/dependabot/npm_and_yarn/language.rb', line 36 def deprecated? false end |
#unsupported? ⇒ Boolean
41 42 43 |
# File 'lib/dependabot/npm_and_yarn/language.rb', line 41 def unsupported? false end |