webvm/examples/ruby/love.rb
2022-01-31 22:00:49 +01:00

9 lines
176 B
Ruby

# Output "I love Ruby"
say = "I love Ruby"; puts say
# Output "I *LOVE* RUBY"
say['love'] = "*love*"; puts say.upcase
# Output "I *love* Ruby", 5 times
5.times { puts say }