$ whois ruby
Ruby
first released in 1995 · by Yukihiro Matsumoto
$ guessprog --inspect ruby
- year
- 1995
- paradigm
- object oriented
- family
- other
- memory
- automatic gc
- binding
- dynamic
- safety
- strong
RUBY(7)
- AUTHORS
- Yukihiro Matsumoto
- HISTORY
- Yukihiro "Matz" Matsumoto conceived Ruby in Japan in 1993 and published the first public release in 1995. He wanted a scripting language that was more powerful than Perl and more object-oriented than Python, designed above all to make programmers happy. The name was picked over the alternative "Coral" during an online chat with a colleague, partly as a nod to Perl. Ruby stayed mostly a Japanese phenomenon until Ruby on Rails appeared in 2004 and made it famous worldwide.
- USAGE
- A mature, well-established language mostly used for web development with Ruby on Rails, which powers sites such as GitHub and Shopify. It is also common for scripting and developer tooling, such as Homebrew and Fastlane, though its popularity has declined from its peak in the early 2010s.
- SEE ALSO
- Ruby on Wikipedia ↗
class Integer
def fizzbuzz
return "FizzBuzz" if (self % 15).zero?
return "Fizz" if (self % 3).zero?
return "Buzz" if (self % 5).zero?
to_s
end
end
1.upto(15) { |n| puts n.fizzbuzz }