注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
# Output "I love Ruby" say = "I love Ruby" puts say # Output "I *LOVE* RUBY" say = say.sub("love"... # 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 } # Ruby knows what you # mean, even if you # want to do math on # an entire Array cities = %w[ London Oslo Paris Amsterdam Berlin ] visited = %w[Berlin Oslo] puts "I still need " + "to visit the " + "following cities:
2010/04/30 リンク