Loops in Ruby, A Simple Loop. The simplest way to create a loop in Ruby is using the loop method. loop takes a block, which is denoted by { } or do end .
確定! 回上一頁