るりまサーチ

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

別のキーワード

  1. socket ai_v4mapped
  2. socket ipv6_v6only
  3. socket ai_v4mapped_cfg
  4. _builtin grep_v
  5. etc cs_v6_env

検索結果

<< 1 2 > >>

Win32::Registry#create(subkey, desired = KEY_ALL_ACCESS, opt = REG_OPTION_RESERVED) (18208.0)

@todo

...@todo

Win32::Registry.create(self, subkey, desired, opt) と同じです。...

Fiddle::Importer#create_value(type, val = nil) -> Fiddle::CStruct (12326.0)

型が type で要素名が "value" であるような構造体を 定義(Fiddle::Importer#struct)し、 その構造体のメモリを Fiddle::CStruct#malloc で確保し、 確保したメモリを保持しているオブジェクトを返します。

...value" であるような構造体を
定義(Fiddle::Importer#struct)し、
その構造体のメモリを Fiddle::CStruct#malloc で確保し、
確保したメモリを保持しているオブジェクトを返します。

type は "int", "void*" といった文字列で型を指定します。
v
...
...された構造体に
その値を代入します。

@param type 型を表す文字列
@param val 構造体に確保される初期値


require 'fiddle/import'

module M
extend Fiddle::Importer
end

v
= M.value("int", 32)
p v.value # => 32
v
.value = 48
p v.value # => 48...

Fiddle::Importer#value(type, val = nil) -> Fiddle::CStruct (9226.0)

型が type で要素名が "value" であるような構造体を 定義(Fiddle::Importer#struct)し、 その構造体のメモリを Fiddle::CStruct#malloc で確保し、 確保したメモリを保持しているオブジェクトを返します。

...value" であるような構造体を
定義(Fiddle::Importer#struct)し、
その構造体のメモリを Fiddle::CStruct#malloc で確保し、
確保したメモリを保持しているオブジェクトを返します。

type は "int", "void*" といった文字列で型を指定します。
v
...
...された構造体に
その値を代入します。

@param type 型を表す文字列
@param val 構造体に確保される初期値


require 'fiddle/import'

module M
extend Fiddle::Importer
end

v
= M.value("int", 32)
p v.value # => 32
v
.value = 48
p v.value # => 48...

OpenSSL::X509::ExtensionFactory#create_extension(oid, value, critical=false) -> OpenSSL::X509::Extension (6227.0)

OpenSSL::X509::Extension のインスタンスを生成して返します。

...ory#create_ext_from_array、
OpenSSL::X509::ExtensionFactory#create_ext_from_hash、
OpenSSL::X509::ExtensionFactory#create_ext_from_string、
がそれぞれ呼びだされてオブジェクトを生成します。

引数が2個以上である場合は、
OpenSSL::X509::ExtensionFactory#create_ext...
...が呼びだされて
オブジェクトを生成します。

@param obj 拡張領域のデータ。配列、ハッシュ、文字列のいずれか
@param oid 拡張領域の識別子を表す文字列
@param value 拡張領域の値を表す文字列
@param critical 重要度(真偽値)...

OpenSSL::X509::ExtensionFactory#create_ext(oid, value, critical = false) -> OpenSSL::X509::Extension (6202.0)

OpenSSL::X509::Extension のインスタンスを生成して返します。

...OpenSSL::X509::Extension のインスタンスを生成して返します。

@param oid 拡張領域の識別子を表す文字列
@param value 拡張領域の値を表す文字列
@param critical 重要度(真偽値)...

絞り込み条件を変える

Binding#local_variable_set(symbol, obj) (6107.0)

引数 symbol で指定した名前のローカル変数に引数 obj を設定します。

...1
bind = binding
bind.local_variable_set(:a, 2) # set existing local variable `a'
bind.local_variable_set(:b, 3) # create new local variable `b'
# `b' exists only in binding
p bind.local_variable_get(:a) # => 2
p bind.local_variable_get(:b) # => 3
p a...
...# => NameError
end
//}

このメソッドは以下のコード(ただし、obj が Ruby のコードで出力される場
合)と同様の動作をします。

//emlist[][ruby]{
binding.eval("#{symbol} = #{obj}")
//}

@see Binding#local_variable_get, Binding#local_variable_defined?...

Gem::Specification#required_ruby_version=(requirement) (6107.0)

この Gem パッケージを動作させるのに必要な Ruby のバージョンをセットします。

...この Gem パッケージを動作させるのに必要な Ruby のバージョンをセットします。

@param requirement Gem::Requirement.create が受け付ける形式のオブジェクトを指定します。

@see Gem::Requirement...

Gem::Specification#required_rubygems_version=(requirement) (6107.0)

この Gem パッケージを動作させるのに必要な RubyGems のバージョンをセットします。

...この Gem パッケージを動作させるのに必要な RubyGems のバージョンをセットします。

@param requirement Gem::Requirement.create が受け付ける形式のオブジェクトを指定します。

@see Gem::Requirement...

Resolv::DNS::Name#subdomain_of?(other) -> bool (3043.0)

other が self のサブドメインであるかどうかを返します。

...require "resolv"
domain = Resolv::DNS::Name.create("y.z")
p Resolv::DNS::Name.create("w.x.y.z").subdomain_of?(domain) #=> true
p Resolv::DNS::Name.create("x.y.z").subdomain_of?(domain) #=> true
p Resolv::DNS::Name.create("y.z").subdomain_of?(domain) #=> false
p Resolv::DNS::Name.create("z").subdomai...
...n_of?(domain) #=> false
p Resolv::DNS::Name.create("x.y.z.").subdomain_of?(domain) #=> false
p Resolv::DNS::Name.create("w.z").subdomain_of?(domain) #=> false
//}...
<< 1 2 > >>