221件ヒット
[1-100件を表示]
(0.096秒)
クラス
-
Fiddle
:: Function (11) - Hash (11)
- Logger (11)
- Method (10)
- Module (5)
-
Net
:: HTTP (11) -
OpenSSL
:: SSL :: SSLContext (22) -
OpenSSL
:: X509 :: Store (11) - Proc (11)
- SystemCallError (11)
- Thread (22)
- TracePoint (26)
モジュール
- Enumerable (44)
-
MiniTest
:: Assertions (15)
キーワード
-
add
_ trace _ func (11) - assert (1)
-
assert
_ block (1) -
assert
_ empty (1) -
assert
_ equal (1) -
assert
_ in _ delta (1) -
assert
_ in _ epsilon (1) -
assert
_ includes (1) -
assert
_ instance _ of (1) -
assert
_ match (1) -
assert
_ nil (1) -
assert
_ operator (1) -
assert
_ respond _ to (1) -
assert
_ same (1) -
assert
_ send (1) -
assert
_ throws (1) - binding (2)
-
callee
_ id (11) -
default
_ proc (11) - detect (22)
- errno (11)
- find (22)
- formatter (11)
- lambda? (11)
-
method
_ id (11) -
ruby2
_ keywords (5) - self (2)
-
set
_ trace _ func (11) -
super
_ method (10) -
tmp
_ dh _ callback (11) -
verify
_ callback (33)
検索結果
先頭5件
-
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...