るりまサーチ

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

別のキーワード

  1. _builtin -
  2. open-uri open
  3. irb/input-method gets
  4. irb/input-method new
  5. matrix -

検索結果

<< 1 2 3 > >>

Fiddle::Function#call(*args) -> Integer|DL::CPtr|nil (18315.0)

関数を呼び出します。

...Ruby のオブジェクトに変換して返します。

引数の変換は以下の通りです。

: void* (つまり任意のポインタ型)
nil
ならば C の NULL に変換されます
Fiddle::Pointer は保持している C ポインタに変換されます。
文字列であれば...
.../float
Ruby の整数 or 浮動小数点数を C の浮動小数点数に変換します

返り値の変換は以下の通りです。

: void
nil
を返します

: (unsigned) char/short/int/long/long long
C の整数を Ruby の整数に変換します

: void*(つまり任意のポイン...

MiniTest::Assertions#assert_nil(object, message = nil) -> true (6331.0)

与えられたオブジェクトが nil である場合、検査にパスしたことになります。

...与えられたオブジェクトが nil である場合、検査にパスしたことになります。

@param object 任意のオブジェクトを指定します。

@param message 検査に失敗した場合に表示するメッセージを指定します。
文字列か Proc...
...を指定します。Proc である場合は Proc#call した
結果を使用します。

@raise MiniTest::Assertion 与えられたオブジェクトが nil でない場合に発生します。...

TracePoint#callee_id -> Symbol | nil (6324.0)

イベントが発生したメソッドの呼ばれた名前を Symbol で返します。 トップレベルであった場合は nil を返します。

...った場合は nil を返します。

@raise RuntimeError イベントフックの外側で実行した場合に発生します。

//emlist[][ruby]{
class C
def method_name
end
alias alias_name method_name
end

trace = TracePoint.new(:call) do |tp|
p [tp.method_id, tp.callee_id] # => [:me...

OpenSSL::SSL::SSLContext#verify_callback -> Proc | nil (6308.0)

オブジェクトに設定されている検証をフィルタするコールバックを 返します。

...オブジェクトに設定されている検証をフィルタするコールバックを
返します。

デフォルトのコールバックが設定されている場合には nil を返します。

@see OpenSSL::X509::Store#verify_callback,
OpenSSL::SSL::SSLContext#verify_callback=...

OpenSSL::X509::Store#verify_callback -> Proc | nil (6308.0)

オブジェクトに設定されている検証をフィルタするコールバックを 返します。

...オブジェクトに設定されている検証をフィルタするコールバックを
返します。

デフォルトのコールバックが設定されている場合には nil を返します。

@see OpenSSL::X509::Store#verify_callback=...

絞り込み条件を変える

OpenSSL::SSL::SSLContext#tmp_dh_callback -> Proc | nil (6302.0)

一時的 DH 鍵を生成するためのコールバックを返します。

...一時的 DH 鍵を生成するためのコールバックを返します。

@see OpenSSL::SSL::SSLContext#tmp_dh_callback=...

Net::HTTP#verify_callback -> Proc (6207.0)

自身に設定されている検証をフィルタするコールバックを 返します。

...れている検証をフィルタするコールバックを
返します。

デフォルトのコールバックが設定されている場合には nil を返します。

@see Net::HTTP#verify_callback=,
OpenSSL::X509::Store#verify_callback,
OpenSSL::SSL::SSLContext#verify_callback...

SystemCallError#errno -> Integer | nil (3214.0)

レシーバに対応するシステム依存のエラーコードを返します。

...合は nil を返します。

begin
raise Errno::ENOENT
rescue Errno::ENOENT => err
p err.errno # => 2
p Errno::ENOENT::Errno # => 2
end

begin
raise SystemCallError, 'message'
rescue SystemCallError => err
p err.errno # => nil
en...

Thread#set_trace_func(pr) -> Proc | nil (346.0)

スレッドにトレース用ハンドラを設定します。

...

nil
を渡すとトレースを解除します。

設定したハンドラを返します。

//emlist[例][ruby]{
th = Thread.new do
class Trace
end
2.to_s
Thread.current.set_trace_func nil
3.to_s
end
th.set_trace_func lambda {|*arg| p arg }
th.join

# => ["line", "example.rb", 2, nil,...
...de87cb08>, nil]
# => ["c-call", "example.rb", 2, :inherited, #<Binding:0x00007fc8de886770>, Class]
# => ["c-return", "example.rb", 2, :inherited, #<Binding:0x00007fc8de8844e8>, Class]
# => ["class", "example.rb", 2, nil, #<Binding:0x00007fc8de88e830>, nil]
# => ["end", "example.rb", 3, nil, #<Bindin...
...fc8de88d6b0>, nil]
# => ["line", "example.rb", 4, nil, #<Binding:0x00007fc8de88c440>, nil]
# => ["c-call", "example.rb", 4, :to_s, #<Binding:0x00007fc8de896f30>, Integer]
# => ["c-return", "example.rb", 4, :to_s, #<Binding:0x00007fc8de894a50>, Integer]
# => ["line", "example.rb", 5, nil, #<Binding:0...

Hash#default_proc -> Proc | nil (236.0)

ハッシュのデフォルト値を返す Proc オブジェクトを返します。 ハッシュがブロック形式のデフォルト値を持たない場合 nil を返します。

...式のデフォルト値を持たない場合 nil を返します。

//emlist[例][ruby]{
h = Hash.new {|hash, key| "The #{key} not exist in #{hash.inspect}"}
p h.default #=> nil
p block = h.default_proc #=> #<Proc:0x0x401a9ff4>
p block.call({},:foo) #=> "The foo not exist in {}"

h...
...= Hash.new("default")
p h.default #=> "default"
p h.default_proc #=> nil
//}

@see Hash#default...

絞り込み条件を変える

<< 1 2 3 > >>