るりまサーチ

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

別のキーワード

  1. _builtin to_i
  2. fiddle to_i
  3. matrix elements_to_i
  4. ipaddr to_i
  5. kernel $-i

検索結果

<< 1 2 > >>

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

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

...します。

i
nherit に真を指定すると
スーパークラスやインクルードしているモジュールの定数も含みます。
Object のサブクラスの場合、Objectやそのスーパークラスで定義されている
定数は含まれません。 Object.constants とする...
...param inherit true を指定するとスーパークラスや include したモジュールで
定義された定数が対象にはなります。false を指定した場合 対象にはなりません。

@see Module.constants, Kernel.#local_variables, Kernel.#global_variables, Object#instan...
...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...

Socket::Constants::IP_SENDSRCADDR -> Integer (15206.0)

ource address for outgoing UDP datagrams。 BasicSocket#getsockopt, BasicSocket#setsockopt の第2引数(optname)に使用します。

...ource address for outgoing UDP datagrams。
BasicSocket#getsockopt, BasicSocket#setsockopt
の第2引数(optname)に使用します。

@see Socket::Constants::IPPROTO_IP, ip(4freebsd)...

Win32::Registry::Constants::REG_DWORD_BIG_ENDIAN (15200.0)

@todo

@todo

レジストリ値の型。

Win32::Registry::Constants::REG_DWORD_LITTLE_ENDIAN (15200.0)

@todo

@todo

レジストリ値の型。

Win32::Registry::Constants::REG_QWORD_LITTLE_ENDIAN (15200.0)

@todo

@todo

レジストリ値の型。

絞り込み条件を変える

Socket::IP_SENDSRCADDR -> Integer (12206.0)

ource address for outgoing UDP datagrams。 BasicSocket#getsockopt, BasicSocket#setsockopt の第2引数(optname)に使用します。

...ource address for outgoing UDP datagrams。
BasicSocket#getsockopt, BasicSocket#setsockopt
の第2引数(optname)に使用します。

@see Socket::Constants::IPPROTO_IP, ip(4freebsd)...

File::Constants::APPEND -> Integer (12200.0)

追記モードでファイルを開くときに指定します。 File.openで使用します。

...追記モードでファイルを開くときに指定します。
File.openで使用します。...

Socket::Constants::MSG_SEND -> Integer (9200.0)

@todo Send the packet in so_temp

...@todo
Send the packet in so_temp...

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

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

...am inherit false を指定しない場合はスーパークラスやインクルードして
いるモジュールのクラス変数を含みます。

//emlist[例][ruby]{
class One
@@var1 = 1
end

class Two < One
@@var2 = 2
end

One.class_variables # => [:@@var1]
Two.class_variab...
...les # => [:@@var2, :@@var1]
Two.class_variables(false) # => [:@@var2]
//}

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

WIN32OLE.const_load(ole, mod = WIN32OLE) -> () (3124.0)

OLEオートメーションサーバが保持する定数を読み込み、指定されたモジュール に組み込みます。

...込む対象のWIN32OLEオブジェクトまたはタイプライブラ
リ名(文字列)を指定します。

@param mod 定数を定義する対象のモジュールを指定します。省略時は
WIN32OLEに組み込まれます。

@raise WIN32OLERuntimeError オー...
...、vbConstants
ように小文字で始まります。しかし、Rubyの定数は大文字で開始する規則のた
め、WIN32OLEによってVbConstantsのように自動的に先頭が大文字化されます。

また、先頭が英字で始まらない定数については、CONSTANTS...
...CEL_CONST
end


excel = WIN32OLE.new('Excel.Application')
WIN32OLE.const_load(excel, EXCEL_CONST)
puts EXCEL_CONST::XlTop # => -4160
puts EXCEL_CONST::CONSTANTS['_xlDialogChartSourceData'] # => 541

モジュール名を省略した例

WIN32OLE.const_load(excel)
puts WIN32OLE::...

絞り込み条件を変える

<< 1 2 > >>