It depends on the class of the object. On a string, % behaves like so: "Hello, %s" % ['world'] #=> "Hello, world". Note that in Ruby 1.9.2, ...
確定! 回上一頁