るりまサーチ

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

別のキーワード

  1. logger error
  2. openssl error
  3. logger error?
  4. getoptlong error
  5. socket so_error

種類

ライブラリ

クラス

モジュール

キーワード

検索結果

English (38038.0)

特殊変数 $! などに英語名の別名 ($ERROR_INFO など)をつけます。

...特殊変数 $! などに英語名の別名 ($ERROR_INFO など)をつけます。

例:

p $/ #=> "\n"
p $RS #=> nil

require 'English'
p $RS #=> "\n"...

Kernel$$ERROR_INFO -> Exception | nil (20232.0)

$! の別名

...$! の別名

require "English"
class SomethingError < StandardError; end

begin
raise SomethingError
rescue
p $ERROR_INFO.backtrace #=> ["sample.rb:5"]
p $ERROR_INFO.to_s #=> "SomethingError"
end...

Kernel$$ERROR_POSITION -> [String] | nil (20220.0)

$@ の別名

...$@ の別名

require "English"
class SomethingError < StandardError; end

begin
raise SomethingError
rescue
p $ERROR_POSITION #=> ["sample.rb:5"]
end...

Object::SCRIPT_LINES__ -> Hash (36.0)

ソースファイル別にまとめられたソースコードの各行。

...せん。


例:
require 'pp'
SCRIPT_LINES__ = {}
require 'English'
pp SCRIPT_LINES__

# => {"/usr/local/lib/ruby/1.6/English.rb"=>
# ["alias $ERROR_INFO $!\n",
# "alias $ERROR_POSITION $@\n",
# "alias $LOADED_FEATURES $\"\n...

NEWS for Ruby 3.0.0 (30.0)

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

...rd 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
subject to autosplatting. This now matches...
...st{
0 => a
p a #=> 0

{b: 0, c: 1} => {b:}
p b #=> 0
//}

//emlist{
# version 3.0
0 in 1 #=> false

# version 2.7
0 in 1 #=> raise NoMatchingPatternError
//}

* Find-pattern is added. [EXPERIMENTAL]
16828

//emlist{
case ["a", 1, "b", "c", 2, "d", "e", "f", 3]
in [*pre, String => x, String =>...
...n methods is now a SyntaxError
instead of a warning. yield in a class definition outside of a method
is now a SyntaxError instead of a LocalJumpError. 15575
* When a class variable is overtaken by the same definition in an
ancestor class/module, a RuntimeError is now raised (previousl...

絞り込み条件を変える

WIN32OLE.locale=(lcid) -> nil (30.0)

WIN32OLEがオートメーション呼び出し時に設定するロケール識別子(LCID)を設 定します。

...子を整数で指定します。

@raise WIN32OLERuntimeError システムにインストールされていないロケール
を指定すると発生します。

WIN32OLE.locale = 1033 # set locale English(U.S)
obj = WIN32OLE_VARIANT.new("$100,000", WIN32OLE::VAR...
...た場合、オブジェクトのメソッド呼び出し時にDISP_E_UNKNOWNLCID(HRESULT error code:0x8002000C)や、TYPE_E_INVDATAREAD(HRESULT error code:0x80028018)などを理由としたWIN32OLERuntimeError例外となります。ほとんどすべての場合において、既定値を変更...