るりまサーチ

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

別のキーワード

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

ライブラリ

クラス

モジュール

キーワード

検索結果

StopIteration#result -> object (18125.0)

この例外オブジェクトを発生させる原因となったメソッド等の返り値を返します。

...ect = Object.new
def object.each
yield :yield1
yield :yield2
:each_returned
end

enumerator = object.to_enum

p enumerator.next #=> :yield1
p enumerator.next #=> :yield2

begin
enumerator.next
rescue StopIteration => error
p error.result #=> :each_returned
end...

Encoding::Converter#primitive_errinfo -> Array (18.0)

直前の Encoding::Converter#primitive_convert による変換の結果を保持する五要素の配列を返します。

...ter#primitive_convert による変換の結果を保持する五要素の配列を返します。

@return [result, enc1, enc2, error_bytes, readagain_bytes] という五要素の配列

result
は直前の primitive_convert の戻り値です。
それ以外の四要素は :invalid_byte_sequence...
...\xd8\x00\x00@ is invalid as UTF-16BE because
# no low surrogate after high surrogate (\xd8\x00).
# It is detected by 3rd byte (\00) which is part of next character.
# So the high surrogate (\xd8\x00) is discarded and
# the 3rd byte is read again later.
# Since the byte is buffered in ec, it is dropp...

NEWS for Ruby 3.0.0 (18.0)

NEWS for Ruby 3.0.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。

...さい。

== 言語仕様の変更

* Keyword arguments are now separated from positional arguments.
Code that resulted in deprecation warnings in Ruby 2.7 will now
result
in ArgumentError or different behavior. 14183
* Procs accepting a single rest argument and keywords are no longer...
...nVariable#wait may now invoke the `block`/`unblock` scheduler hooks in a non-blocking context. 16786
* Dir
* Dir.glob and Dir.[] now sort the results by default, and accept the `sort:` keyword option. 8709
* ENV
* ENV.except has been added, which returns a hash excluding the given keys...
...!
* String#slice / String#[]
* String#split
* String#squeeze
* String#strip
* String#sub
* String#succ / String#next
* String#swapcase
* String#tr
* String#tr_s
* String#upcase
* Symbol
* Symbol#to_proc now returns a lambda Proc. 162...

リテラル (18.0)

リテラル * num * string * backslash * exp * char * command * here * regexp * array * hash * range * symbol * percent

...

//emlist[][ruby]{
print <<EOS # 識別子 EOS までがリテラルになる
the string
next
line
EOS
//}

これは以下と同じです。

//emlist[][ruby]{
print " the string\n next line\n"
//}

ヒアドキュメントでは、開始ラベル `<<識別子' が文法要素とし...
...うに `~` を付けて書くことで、以下のような
ヒアドキュメントを書くことができます。

//emlist[][ruby]{
expected_result = <<~SQUIGGLY_HEREDOC
This would contain specially formatted text.

That might span many lines
SQUIGGLY_HEREDOC
# => "This would contain specia...

Kernel.#loop -> Enumerator (12.0)

(中断されない限り)永遠にブロックの評価を繰り返します。 ブロックが指定されなければ、代わりに Enumerator を返します。

...
ループを終了させる場合、通常は break を使用してください。

//emlist[例][ruby]{
enum = Enumerator.new { |y|
y << "one"
y << "two"
:ok
}

result
= loop {
puts enum.next
} # => :ok
//}


@return break の引数など、ループ脱出時の値を返します。...

絞り込み条件を変える

Kernel.#loop { ... } -> object | nil (12.0)

(中断されない限り)永遠にブロックの評価を繰り返します。 ブロックが指定されなければ、代わりに Enumerator を返します。

...
ループを終了させる場合、通常は break を使用してください。

//emlist[例][ruby]{
enum = Enumerator.new { |y|
y << "one"
y << "two"
:ok
}

result
= loop {
puts enum.next
} # => :ok
//}


@return break の引数など、ループ脱出時の値を返します。...

OpenSSL::X509 (12.0)

OpenSSL の X509 証明書、CRL(証明書失効リスト)、 CSR(証明書署名要求)、証明書ストアなどに関するモジュールです。

..._error] 検証時エラー定数

以下の定数は OpenSSL::X509::Store#error,
OpenSSL::X509::StoreContext#error,
OpenSSL::SSL::SSLSocket#verify_result
の返り値として用いられます。
V_OK はエラーなしを意味しています。
* OpenSSL::X509::V_OK
* OpenSSL::X509::V_ERR_AKI...
...* OpenSSL::X509::V_ERR_ERROR_IN_CERT_NOT_BEFORE_FIELD
* OpenSSL::X509::V_ERR_ERROR_IN_CRL_LAST_UPDATE_FIELD
* OpenSSL::X509::V_ERR_ERROR_IN_CRL_NEXT_UPDATE_FIELD
* OpenSSL::X509::V_ERR_INVALID_CA
* OpenSSL::X509::V_ERR_INVALID_PURPOSE
* OpenSSL::X509::V_ERR_KEYUSAGE_NO_CERTSIGN
* OpenSSL...