Class: Falkor::Ruby
Defined Under Namespace
Classes: NotFound
Constant Summary collapse
- RELEASES =
"https://raw.githubusercontent.com/ruby/www.ruby-lang.org/"\ "master/_data/releases.yml"
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(version) ⇒ Ruby
constructor
A new instance of Ruby.
- #other_versions ⇒ Object
Methods included from Installable
Constructor Details
Class Method Details
.search(query) ⇒ Object
15 16 17 18 19 |
# File 'lib/falkor/ruby.rb', line 15 def search(query) versions.keys.map do |version| new(version) if version.include? query end.compact end |
Instance Method Details
#other_versions ⇒ Object
38 39 40 41 42 43 44 |
# File 'lib/falkor/ruby.rb', line 38 def other_versions self.class.versions.keys.map do |number| next if number == version self.class.new(number) end.compact end |