るりまサーチ

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

別のキーワード

  1. prime next
  2. _builtin next
  3. date next
  4. date next_year
  5. date next_month

ライブラリ

キーワード

検索結果

LocalJumpError#reason -> Symbol (18120.0)

例外を発生させた原因をシンボルで返します。

...* :break
* :redo
* :retry
* :next
* :return
* :noreason

例:

def foo
proc { return 10 }
end

begin
foo.call
rescue LocalJumpError => err
p err # => #<LocalJumpError: return from block-closure>
p err.reason # => :return
p err.exit_value...
...# => 10
end

begin
Block.new { break 5 }.call
rescue LocalJumpError => err
p err # => #<LocalJumpError: break from block-closure>
p err.reason # => :break
p err.exit_value # => 5
end...

OpenSSL::OCSP::BasicResponse#add_status(cid, status, reason, revtime, thisupd, nextupd, exts) -> self (208.0)

証明書の状態の問い合わせの結果をオブジェクトに追加します。

...クト)
@param status ステータスコード(整数)
@param reason 失効理由コード(整数)
@param revtime 失効時刻(Time オブジェクトもしくは nil)
@param thisupd 最終更新時刻(Time オブジェクト)
@param nextupd 次回更新時刻(Time オブジェクト)
@param exts...

OpenSSL::OCSP::BasicResponse#status -> [[OpenSSL::OCSP::CertificateId, Integer, Integer, Time|nil, Time, Time|nil, [OpenSSL::X509::Extension]]] (13.0)

証明書の状態の問い合わせの結果を返します。

...# reason code
# nil, # revoked time
# 2011-06-29 05:24:43 UTC, # update time
# 2011-07-06 05:24:43 UTC, # next update time
# []]...