Class: Bundler::LazySpecification::Identifier

Inherits:
Struct
  • Object
show all
Includes:
Comparable
Defined in:
lib/bundler/lazy_specification.rb,
lib/bundler/lazy_specification.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#dependenciesObject

Returns the value of attribute dependencies

Returns:

  • (Object)

    the current value of dependencies



7
8
9
# File 'lib/bundler/lazy_specification.rb', line 7

def dependencies
  @dependencies
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



7
8
9
# File 'lib/bundler/lazy_specification.rb', line 7

def name
  @name
end

#platformObject

Returns the value of attribute platform

Returns:

  • (Object)

    the current value of platform



7
8
9
# File 'lib/bundler/lazy_specification.rb', line 7

def platform
  @platform
end

#sourceObject

Returns the value of attribute source

Returns:

  • (Object)

    the current value of source



7
8
9
# File 'lib/bundler/lazy_specification.rb', line 7

def source
  @source
end

#versionObject

Returns the value of attribute version

Returns:

  • (Object)

    the current value of 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