你怎么能在Ruby中做整数('1')?

1ij*_*ijk 2 ruby

如何标准库让你裹胁StringIntegerInteger('1') #=> 1?是否有语言功能允许在类中创建这种转换语法?

ste*_*lag 7

不是一个阶级,只是一种伪装的方法.