Class: Latest::Rubinius
- Inherits:
-
Object
- Object
- Latest::Rubinius
- Defined in:
- lib/latest_ruby/rubies/rubinius.rb
Constant Summary collapse
- SOURCE =
'http://asset.rubini.us/'
- AVAILABLE_EXTS =
['.tar.gz']
Instance Attribute Summary collapse
-
#source ⇒ Object
readonly
Returns the value of attribute source.
Instance Method Summary collapse
-
#initialize(retriever) ⇒ Rubinius
constructor
A new instance of Rubinius.
- #link(ext = '.tar.gz') ⇒ Object
- #version ⇒ Object
Constructor Details
Instance Attribute Details
#source ⇒ Object (readonly)
Returns the value of attribute source.
7 8 9 |
# File 'lib/latest_ruby/rubies/rubinius.rb', line 7 def source @source end |
Instance Method Details
#link(ext = '.tar.gz') ⇒ Object
18 19 20 21 22 |
# File 'lib/latest_ruby/rubies/rubinius.rb', line 18 def link(ext = '.tar.gz') if AVAILABLE_EXTS.include?(ext) source + 'rubinius-' + version.to_s + ext end end |
#version ⇒ Object
14 15 16 |
# File 'lib/latest_ruby/rubies/rubinius.rb', line 14 def version @version ||= @retriever.retrieve(self) end |