类 NoMethodError

当在接收者上调用了一个未定义的方法,并且该接收者也未能响应 method_missing 时抛出。

"hello".to_ary

抛出异常

NoMethodError: undefined method `to_ary' for an instance of String