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
-
#dependencies ⇒ Object
Returns the value of attribute dependencies.
-
#name ⇒ Object
Returns the value of attribute name.
-
#platform ⇒ Object
Returns the value of attribute platform.
-
#source ⇒ Object
Returns the value of attribute source.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
Instance Attribute Details
#dependencies ⇒ Object
Returns the value of attribute dependencies
7 8 9 |
# File 'lib/bundler/lazy_specification.rb', line 7 def dependencies @dependencies end |
#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 |
#source ⇒ Object
Returns the value of attribute source
7 8 9 |
# File 'lib/bundler/lazy_specification.rb', line 7 def source @source 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 |