class Latest::JRuby
Constants
- AVAILABLE_EXTS
- SOURCE
- WEB_SOURCE
Attributes
source[R]
web_source[R]
Public Class Methods
new(retriever)
click to toggle source
# File lib/latest_ruby/rubies/jruby.rb, line 10 def initialize(retriever) @retriever = retriever @source = WEB_SOURCE end
Public Instance Methods
link(ext = '.tar.gz')
click to toggle source
# File lib/latest_ruby/rubies/jruby.rb, line 19 def link(ext = '.tar.gz') if AVAILABLE_EXTS.include?(ext) SOURCE + '/' + version.to_s + '/jruby-bin-' + version.to_s + ext end end
version()
click to toggle source
# File lib/latest_ruby/rubies/jruby.rb, line 15 def version @version ||= @retriever.retrieve(self) end