Maintenance of Ruby 2.0.0 ended on February 24, 2016. Read more

In Files

  • error.c

Parent

toggle debugging

TypeError

Raised when encountering an object that is not of the expected type.

[1, 2, 3].first("two")

raises the exception:

TypeError: no implicit conversion of String into Integer