Class: Dependabot::Ecosystem
- Inherits:
-
Object
- Object
- Dependabot::Ecosystem
- Extended by:
- T::Sig
- Defined in:
- lib/dependabot/ecosystem.rb
Defined Under Namespace
Classes: VersionManager
Instance Attribute Summary collapse
-
#language ⇒ Object
readonly
Returns the value of attribute language.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#package_manager ⇒ Object
readonly
Returns the value of attribute package_manager.
Instance Method Summary collapse
- #deprecated? ⇒ Boolean
-
#initialize(name:, package_manager:, language: nil) ⇒ Ecosystem
constructor
A new instance of Ecosystem.
- #raise_if_unsupported! ⇒ Object
- #unsupported? ⇒ Boolean
Constructor Details
#initialize(name:, package_manager:, language: nil) ⇒ Ecosystem
Returns a new instance of Ecosystem.
175 176 177 178 179 180 181 182 183 |
# File 'lib/dependabot/ecosystem.rb', line 175 def initialize( name:, package_manager:, language: nil ) @name = T.let(name, String) @package_manager = T.let(package_manager, VersionManager) @language = T.let(language, T.nilable(VersionManager)) end |
Instance Attribute Details
#language ⇒ Object (readonly)
Returns the value of attribute language.
201 202 203 |
# File 'lib/dependabot/ecosystem.rb', line 201 def language @language end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
189 190 191 |
# File 'lib/dependabot/ecosystem.rb', line 189 def name @name end |
#package_manager ⇒ Object (readonly)
Returns the value of attribute package_manager.
195 196 197 |
# File 'lib/dependabot/ecosystem.rb', line 195 def package_manager @package_manager end |
Instance Method Details
#deprecated? ⇒ Boolean
206 207 208 |
# File 'lib/dependabot/ecosystem.rb', line 206 def deprecated? package_manager.deprecated? end |
#raise_if_unsupported! ⇒ Object
218 219 220 |
# File 'lib/dependabot/ecosystem.rb', line 218 def raise_if_unsupported! package_manager.raise_if_unsupported! end |
#unsupported? ⇒ Boolean
212 213 214 |
# File 'lib/dependabot/ecosystem.rb', line 212 def unsupported? package_manager.unsupported? end |