End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Object#respond_to_missing?
obj.respond_to_missing?(symbol, include_all) → true or false
obj.respond_to_missing?(string, include_all) → true or false
vm_method.c
View on GitHub ↗
static VALUE
obj_respond_to_missing(VALUE obj, VALUE mid, VALUE priv)
{
return Qfalse;
}
DO NOT USE THIS DIRECTLY.
Hook method to return whether the obj can respond to id method or not.
When the method name parameter is given as a string, the string is converted to a symbol.
See respond_to?, and the example of BasicObject.
See also
#respond_to?
#send
#remove_instance_variable
#singleton_class
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.0