Ruby program to demonstrate # the chomp method # Taking a string and # using the method puts "String\r\n\r\r\n".chomp('') puts "Method".chomp("tho"). 輸出:
確定! 回上一頁