Ruby 1.9.2 リファレンスマニュアル > 関数一覧 > rb_gv_get
VALUE rb_gv_get(const char *name)
#@# [1.5 feature]
Ruby のグローバル変数の値を取得します。
使用例
VALUE v = rb_gv_get("$!")