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
8 9 10 |
# File 'lib/bundler/lazy_specification.rb', line 8 def dependencies @dependencies end |
#name ⇒ Object
Returns the value of attribute name
8 9 10 |
# File 'lib/bundler/lazy_specification.rb', line 8 def name @name end |
#platform ⇒ Object
Returns the value of attribute platform
8 9 10 |
# File 'lib/bundler/lazy_specification.rb', line 8 def platform @platform end |
#source ⇒ Object
Returns the value of attribute source
8 9 10 |
# File 'lib/bundler/lazy_specification.rb', line 8 def source @source end |
#version ⇒ Object
Returns the value of attribute version
8 9 10 |
# File 'lib/bundler/lazy_specification.rb', line 8 def version @version end |
Instance Method Details
#<=>(other) ⇒ Object
11 12 13 14 |
# File 'lib/bundler/lazy_specification.rb', line 11 def <=>(other) return unless other.is_a?(Identifier) [name, version, platform_string] <=> [other.name, other.version, other.platform_string] end |