Class: CompactIndex::Dependency
- Inherits:
-
Struct
- Object
- Struct
- CompactIndex::Dependency
- Defined in:
- lib/compact_index/dependency.rb
Instance Attribute Summary collapse
-
#checksum ⇒ Object
Returns the value of attribute checksum.
-
#gem ⇒ Object
Returns the value of attribute gem.
-
#platform ⇒ Object
Returns the value of attribute platform.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
Instance Attribute Details
#checksum ⇒ Object
Returns the value of attribute checksum
4 5 6 |
# File 'lib/compact_index/dependency.rb', line 4 def checksum @checksum end |
#gem ⇒ Object
Returns the value of attribute gem
4 5 6 |
# File 'lib/compact_index/dependency.rb', line 4 def gem @gem end |
#platform ⇒ Object
Returns the value of attribute platform
4 5 6 |
# File 'lib/compact_index/dependency.rb', line 4 def platform @platform end |
#version ⇒ Object
Returns the value of attribute version
4 5 6 |
# File 'lib/compact_index/dependency.rb', line 4 def version @version end |
Instance Method Details
#version_and_platform ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/compact_index/dependency.rb', line 5 def version_and_platform if platform.nil? || platform == "ruby" version.dup else "#{version}-#{platform}" end end |