class TypeError
遇到非预期类型的对象时引发。
[1, 2, 3].first("two")
为没有 Bundler 环境的 RubyGems 抛出异常。
TypeError: no implicit conversion of String into Integer
遇到非预期类型的对象时引发。
[1, 2, 3].first("two")
为没有 Bundler 环境的 RubyGems 抛出异常。
TypeError: no implicit conversion of String into Integer