Class: Bundler::LazySpecification::Identifier
- Inherits:
-
Struct
- Object
- Struct
- Bundler::LazySpecification::Identifier
- Includes:
- Comparable
- Defined in:
- lib/bundler/lazy_specification.rb,
lib/bundler/lazy_specification.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#platform ⇒ Object
Returns the value of attribute platform.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name
7 8 9 |
# File 'lib/bundler/lazy_specification.rb', line 7 def name @name end |
#platform ⇒ Object
Returns the value of attribute platform
7 8 9 |
# File 'lib/bundler/lazy_specification.rb', line 7 def platform @platform end |
#version ⇒ Object
Returns the value of attribute version
7 8 9 |
# File 'lib/bundler/lazy_specification.rb', line 7 def version @version end |
Instance Method Details
#<=>(other) ⇒ Object
10 11 12 13 |
# File 'lib/bundler/lazy_specification.rb', line 10 def <=>(other) return unless other.is_a?(Identifier) [name, version, platform_string] <=> [other.name, other.version, other.platform_string] end |