Class: Gem2Rpm::Dependency

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/gem2rpm/gem/dependency.rb

Direct Known Subclasses

RpmDependency

Instance Method Summary collapse

Instance Method Details

#requirementObject

What does this dependency require?



7
8
9
10
11
12
13
14
15
# File 'lib/gem2rpm/gem/dependency.rb', line 7

def requirement
  r = begin
    super
  rescue
    version_requirements # For RubyGems < 1.3.6
  end

  Helpers.requirement_versions_to_rpm r
end

#typeObject

Dependency type. Needs to be explicitly reimplemented.



18
19
20
# File 'lib/gem2rpm/gem/dependency.rb', line 18

def type
  __getobj__.type
end