るりまサーチ (Ruby 3.3)

最速Rubyリファレンスマニュアル検索!
2件ヒット [1-2件を表示] (0.012秒)

別のキーワード

  1. kernel global_variables
  2. _builtin global_variables
  3. handle rtld_global
  4. fiddle rtld_global
  5. socket ipv6_mc_global?

種類

ライブラリ

モジュール

検索結果

Kernel.#global_variables -> [Symbol] (72622.0)

プログラム中で定義されているグローバル変数(`$'で始まる変数)名の 配列を返します。

プログラム中で定義されているグローバル変数(`$'で始まる変数)名の
配列を返します。

//emlist[例][ruby]{
p global_variables #=> [:$;, :$-F, :$@, ... ]
//}

@see Kernel.#local_variables,Object#instance_variables,Module.constants,Module#constants,Module#class_variables

VALUE rb_f_global_variables(void) (36601.0)