Class: Depcheck::DependencyInfo
- Inherits:
-
Object
- Object
- Depcheck::DependencyInfo
- Defined in:
- lib/depcheck/dependency_info.rb
Instance Attribute Summary collapse
-
#dependencies ⇒ Object
Returns the value of attribute dependencies.
-
#name ⇒ Object
Returns the value of attribute name.
-
#nominal ⇒ Object
Returns the value of attribute nominal.
-
#usage ⇒ Object
Returns the value of attribute usage.
Instance Method Summary collapse
-
#initialize(name, nominal, dependencies) ⇒ DependencyInfo
constructor
A new instance of DependencyInfo.
Constructor Details
#initialize(name, nominal, dependencies) ⇒ DependencyInfo
Returns a new instance of DependencyInfo.
5 6 7 8 9 10 |
# File 'lib/depcheck/dependency_info.rb', line 5 def initialize(name, nominal, dependencies) self.name = name self.nominal = nominal self.dependencies = dependencies self.usage = 0 end |
Instance Attribute Details
#dependencies ⇒ Object
Returns the value of attribute dependencies.
3 4 5 |
# File 'lib/depcheck/dependency_info.rb', line 3 def dependencies @dependencies end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/depcheck/dependency_info.rb', line 3 def name @name end |
#nominal ⇒ Object
Returns the value of attribute nominal.
3 4 5 |
# File 'lib/depcheck/dependency_info.rb', line 3 def nominal @nominal end |
#usage ⇒ Object
Returns the value of attribute usage.
3 4 5 |
# File 'lib/depcheck/dependency_info.rb', line 3 def usage @usage end |