Class: Gem::Dependency
- Inherits:
-
Object
- Object
- Gem::Dependency
- Defined in:
- lib/gel/compatibility/rubygems.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#requirement ⇒ Object
readonly
Returns the value of attribute requirement.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(name, requirement, type) ⇒ Dependency
constructor
A new instance of Dependency.
Constructor Details
#initialize(name, requirement, type) ⇒ Dependency
Returns a new instance of Dependency.
20 21 22 23 24 |
# File 'lib/gel/compatibility/rubygems.rb', line 20 def initialize(name, requirement, type) @name = name @requirement = requirement @type = type end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
16 17 18 |
# File 'lib/gel/compatibility/rubygems.rb', line 16 def name @name end |
#requirement ⇒ Object (readonly)
Returns the value of attribute requirement.
17 18 19 |
# File 'lib/gel/compatibility/rubygems.rb', line 17 def requirement @requirement end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
18 19 20 |
# File 'lib/gel/compatibility/rubygems.rb', line 18 def type @type end |