Ruby 4.0!

Posted by Tom in ·

Ruby 4.0 was released[1] on Christmas day! They also re-designed the Ruby website[2] and it is beautiful. You can tell a lot of love went into the new design. I’m not sure how they do it but the language continues to bring joy with each release.

# Output "I love Ruby"
say = "I love Ruby"
puts say

# Output "I *LOVE* RUBY"
say = say.sub("love", "*love*")
puts say.upcase

# Output "I *love* Ruby"
# five times
5.times { puts say }

Leave a comment

Leave a comment

(show email/url »)