enum.to_s → str
Returns a string representation of enum. (Prior to Ruby 1.9, this representation was the same as enum.join. Now it is the array as a literal.)
[ 1, 3, 5, 7, 9 ].to_s # => "[1, 3, 5, 7, 9]
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |