Class: CompactIndex::Gem
- Inherits:
-
Struct
- Object
- Struct
- CompactIndex::Gem
- Defined in:
- lib/compact_index/gem.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#versions ⇒ Object
Returns the value of attribute versions.
Instance Method Summary collapse
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name
3 4 5 |
# File 'lib/compact_index/gem.rb', line 3 def name @name end |
#versions ⇒ Object
Returns the value of attribute 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 |