Sha256: 70fd0fc31efb6b21c2674e98c985e005393022fe246db66e7bec478405bb95ac

Contents?: true

Size: 693 Bytes

Versions: 3

Compression:

Stored size: 693 Bytes

Contents

module Pod
  # A Requirement is a set of one or more version restrictions of a
  # {Dependency}.
  #
  # It is based on the RubyGems class adapted to support CocoaPods specific
  # information.
  #
  # @todo Move support about external sources and head information here from
  #       the Dependency class.
  #
  class Requirement < Pod::Vendor::Gem::Requirement
    # module Pod::Specification::Set - all_specifications[requirement]
    # 如上所示,当requirement做为key的时候,实际上只需要requirements的内容是一样既可以认为是一样的,而不需要整个Requirement的对象一样
    def eql? other
      @requirements.eql? other.requirements
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cocoapods-pdk8-0.0.3 lib/cocoapods-pdk8/hook/requirement.rb
cocoapods-pdk8-0.0.2 lib/cocoapods-pdk8/hook/requirement.rb
cocoapods-pdk8-0.0.1 lib/cocoapods-pdk8/hook/requirement.rb