Class: Pod::Resolver::EdgeAndPlatform
- Inherits:
-
Object
- Object
- Pod::Resolver::EdgeAndPlatform
- Defined in:
- lib/cocoapods/resolver.rb
Private helpers collapse
-
#edge ⇒ Object
readonly
Returns the value of attribute edge.
-
#target_platform ⇒ Object
readonly
Returns the value of attribute target_platform.
Private helpers collapse
- #eql?(other) ⇒ Boolean
- #hash ⇒ Object
-
#initialize(edge, target_platform) ⇒ EdgeAndPlatform
constructor
A new instance of EdgeAndPlatform.
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
#edge ⇒ Object (readonly)
Returns the value of attribute edge.
563 564 565 |
# File 'lib/cocoapods/resolver.rb', line 563 def edge @edge end |
#target_platform ⇒ Object (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
565 566 567 |
# File 'lib/cocoapods/resolver.rb', line 565 def eql?(other) edge.equal?(other.edge) && target_platform.eql?(other.target_platform) end |
#hash ⇒ Object
569 570 571 |
# File 'lib/cocoapods/resolver.rb', line 569 def hash edge.object_id ^ target_platform.hash end |