Ruby 2.3.0 リファレンスマニュアル > 関数一覧 > rb_const_defined

function rb_const_defined

int rb_const_defined(VALUE klass, ID id)

klass とそのスーパークラスに定数 id が定義されていれば真。