Ruby 2.0.0 リファレンスマニュアル > 関数一覧 > top_const_get (static)

function top_const_get

static int top_const_get(ID id, VALUE *klassp)

トップレベルの定数 id を参照します。 定数 id が定義されていたら真を返し klassp に その値を書き込みます。未定義なら偽を返します。