Class: Gem::Dependency

Inherits:
Object
  • Object
show all
Defined in:
lib/gel/compatibility/rubygems.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (readonly)

Returns the value of attribute name.



16
17
18
# File 'lib/gel/compatibility/rubygems.rb', line 16

def name
  @name
end

#requirementObject (readonly)

Returns the value of attribute requirement.



17
18
19
# File 'lib/gel/compatibility/rubygems.rb', line 17

def requirement
  @requirement
end

#typeObject (readonly)

Returns the value of attribute type.



18
19
20
# File 'lib/gel/compatibility/rubygems.rb', line 18

def type
  @type
end