Ruby 4.0 リファレンスマニュアル

function rb_obj_is_proc

[edit]
VALUE rb_obj_is_proc(VALUE recv)

recv が Proc のインスタンスであれば真を返します。