Class: Latest::MacRuby
- Inherits:
-
Object
- Object
- Latest::MacRuby
- Defined in:
- lib/latest_ruby/rubies/macruby.rb
Constant Summary collapse
- SOURCE =
'http://macruby.jp/files/'
- AVAILABLE_EXTS =
['.zip']
Instance Attribute Summary collapse
-
#source ⇒ Object
readonly
Returns the value of attribute source.
Instance Method Summary collapse
-
#initialize(retriever) ⇒ MacRuby
constructor
A new instance of MacRuby.
- #link(ext = '.zip') ⇒ 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/macruby.rb', line 7 def source @source end |
Instance Method Details
#link(ext = '.zip') ⇒ Object
18 19 20 21 22 |
# File 'lib/latest_ruby/rubies/macruby.rb', line 18 def link(ext = '.zip') if AVAILABLE_EXTS.include?(ext) source + 'MacRuby ' + version.to_s + ext end end |
#version ⇒ Object
14 15 16 |
# File 'lib/latest_ruby/rubies/macruby.rb', line 14 def version @version ||= @retriever.retrieve(self) end |