阅读背景:

替换Ruby中的to_s方法。不打印所需的字符串

来源:互联网 

So, I am just beginning to learn Ruby and I included a to_s method in my Class so that I can simply pass the Object to a puts method and have it return more than just the Object ID. I made a mistake and defined it as such:So, I am just beginning to learn Ruby and I inc




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: