Class: CompactIndex::Gem

Inherits:
Struct
  • Object
show all
Defined in:
lib/compact_index/gem.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



3
4
5
# File 'lib/compact_index/gem.rb', line 3

def name
  @name
end

#versionsObject

Returns the value of attribute versions

Returns:

  • (Object)

    the current value of versions



3
4
5
# File 'lib/compact_index/gem.rb', line 3

def versions
  @versions
end

Instance Method Details

#<=>(other) ⇒ Object



4
5
6
# File 'lib/compact_index/gem.rb', line 4

def <=>(other)
  name <=> other.name
end