Did you notice that the output of both p and puts became the same in the above example? This is because if you override to_s for an object, Ruby will treat it ...
確定! 回上一頁