Class: Pod::Resolver::EdgeAndPlatform

Inherits:
Object
  • Object
show all
Defined in:
lib/cocoapods/resolver.rb

Private helpers collapse

Private helpers collapse

Constructor Details

#initialize(edge, target_platform) ⇒ EdgeAndPlatform

Returns a new instance of EdgeAndPlatform.



559
560
561
562
# File 'lib/cocoapods/resolver.rb', line 559

def initialize(edge, target_platform)
  @edge = edge
  @target_platform = target_platform
end

Instance Attribute Details

#edgeObject (readonly)

Returns the value of attribute edge.



563
564
565
# File 'lib/cocoapods/resolver.rb', line 563

def edge
  @edge
end

#target_platformObject (readonly)

Returns the value of attribute target_platform.



563
564
565
# File 'lib/cocoapods/resolver.rb', line 563

def target_platform
  @target_platform
end

Instance Method Details

#eql?(other) ⇒ Boolean

Returns:

  • (Boolean)


565
566
567
# File 'lib/cocoapods/resolver.rb', line 565

def eql?(other)
  edge.equal?(other.edge) && target_platform.eql?(other.target_platform)
end

#hashObject



569
570
571
# File 'lib/cocoapods/resolver.rb', line 569

def hash
  edge.object_id ^ target_platform.hash
end