るりまサーチ

最速Rubyリファレンスマニュアル検索!
359件ヒット [1-100件を表示] (0.049秒)
トップページ > クエリ:class[x] > クエリ:constants[x]

別のキーワード

  1. argf.class each
  2. argf.class each_line
  3. argf.class lines
  4. class new
  5. argf.class readlines

検索結果

<< 1 2 3 ... > >>

Module#constants(inherit = true) -> [Symbol] (18185.0)

そのモジュール(またはクラス)で定義されている定数名の配列を返します。

...ます。
Object のサブクラスの場合、Objectやそのスーパークラスで定義されている
定数は含まれません。 Object.constants とすると Object クラスで定義された
定数の配列が得られます。

得られる定数の順序は保証されません。

@p...
...e.constants, Kernel.#local_variables, Kernel.#global_variables, Object#instance_variables, Module#class_variables

//emlist[Module.constants と Module#constants の違い][ruby]{
# 出力の簡略化のため起動時の定数一覧を取得して後で差し引く
$clist = Module.constants

class
...
...Foo
FOO = 1
end
class
Bar
BAR = 1

# Bar は BAR を含む
p constants # => [:BAR]
# 出力に FOO は含まれない
p Module.constants - $clist # => [:BAR, :Bar, :Foo]
class
Baz
# Baz は定数を含まない
p constants #...

Module.constants -> [Symbol] (18125.0)

このメソッドを呼び出した時点で参照可能な定数名の配列を返します。

...//emlist[例][ruby]{
class
C
FOO = 1
end
p Module.constants # => [:RUBY_PLATFORM, :STDIN, ..., :C, ...]
# 出力中に :FOO は現われない
//}

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

Socket::Constants::IPV6_RECVTCLASS -> Integer (9122.0)

Receive traffic class。 BasicSocket#getsockopt, BasicSocket#setsockopt の第2引数(optname)に使用します。

...Receive traffic class
BasicSocket#getsockopt, BasicSocket#setsockopt
の第2引数(optname)に使用します。

@see Socket::Constants::IPPROTO_IPV6,
3542...

Socket::Constants::IPV6_TCLASS -> Integer (9122.0)

Specify the traffic class。 BasicSocket#getsockopt, BasicSocket#setsockopt の第2引数(optname)に使用します。

...Specify the traffic class
BasicSocket#getsockopt, BasicSocket#setsockopt
の第2引数(optname)に使用します。

@see Socket::Constants::IPPROTO_IPV6,
3542...

Win32::Registry::Constants::HKEY_CLASSES_ROOT (9100.0)

@todo

@todo

定義済キー値。
これらは Integer で、Win32::Registry オブジェクトではありません。

絞り込み条件を変える

Module#class_variables(inherit = true) -> [Symbol] (6143.0)

クラス/モジュールに定義されているクラス変数の名前の配列を返します。

...みます。

//emlist[例][ruby]{
class
One
@@var1 = 1
end
class
Two < One
@@var2 = 2
end
One.class_variables # => [:@@var1]
Two.class_variables # => [:@@var2, :@@var1]
Two.class_variables(false) # => [:@@var2]
//}

@see Module.constants, Kernel.#local_variables, Kernel.#glo...
...bal_variables, Object#instance_variables, Module#constants...

Socket::IPV6_RECVTCLASS -> Integer (6122.0)

Receive traffic class。 BasicSocket#getsockopt, BasicSocket#setsockopt の第2引数(optname)に使用します。

...Receive traffic class
BasicSocket#getsockopt, BasicSocket#setsockopt
の第2引数(optname)に使用します。

@see Socket::Constants::IPPROTO_IPV6,
3542...

Socket::IPV6_TCLASS -> Integer (6122.0)

Specify the traffic class。 BasicSocket#getsockopt, BasicSocket#setsockopt の第2引数(optname)に使用します。

...Specify the traffic class
BasicSocket#getsockopt, BasicSocket#setsockopt
の第2引数(optname)に使用します。

@see Socket::Constants::IPPROTO_IPV6,
3542...

Win32::Registry::Constants::HKEY_CURRENT_CONFIG (6000.0)

@todo

@todo

定義済キー値。
これらは Integer で、Win32::Registry オブジェクトではありません。
<< 1 2 3 ... > >>