1063件ヒット
[1001-1063件を表示]
(0.108秒)
ライブラリ
クラス
- Array (84)
-
Encoding
:: Converter (48) -
Encoding
:: InvalidByteSequenceError (24) -
Encoding
:: UndefinedConversionError (12) - Enumerator (12)
- Exception (116)
- FrozenError (6)
- IO (12)
- Integer (23)
-
JSON
:: State (12) - MatchData (50)
-
Net
:: HTTPResponse (12) - OptionParser (24)
- Random (36)
- Range (91)
- Regexp (24)
- SignalException (24)
- String (144)
- StringScanner (84)
- Thread (12)
-
Thread
:: Queue (36) -
Thread
:: SizedQueue (36) - TracePoint (12)
- UncaughtThrowError (33)
- WIN32OLE (12)
-
Zlib
:: GzipWriter (24)
モジュール
- Comparable (12)
-
Net
:: HTTPExceptions (12) -
Net
:: HTTPHeader (36)
キーワード
-
/ (11) - == (12)
- =~ (12)
- [] (120)
- accept (12)
- at (12)
- backtrace (12)
-
backtrace
_ locations (12) -
beginning
_ of _ line? (12) - bol? (12)
- bytebegin (2)
-
check
_ circular? (12) - clamp (12)
- close (12)
- cover? (19)
- deq (24)
- div (12)
- end (24)
-
error
_ bytes (12) -
error
_ char (12) - exception (12)
- fetch (72)
- finish (12)
- first (24)
-
fixed
_ encoding? (12) -
incomplete
_ input? (12) - inspect (12)
- last (24)
- next (12)
- offset (24)
-
ole
_ query _ interface (12) - peek (12)
- peep (12)
- pointer= (12)
- pop (24)
- pos= (12)
-
primitive
_ convert (48) -
raised
_ exception (12) - rand (36)
- readbyte (12)
- receiver (6)
- reject (12)
- response (12)
-
set
_ backtrace (12) - shift (24)
- signm (12)
- signo (12)
- slice (72)
- tag (11)
-
to
_ json (12) -
to
_ s (23) - unscan (12)
- value (23)
検索結果
先頭5件
-
Exception
# message -> String (113.0) -
エラーメッセージをあらわす文字列を返します。
...エラーメッセージをあらわす文字列を返します。
//emlist[例][ruby]{
begin
1 + nil
rescue => e
p e.message #=> "nil can't be coerced into Fixnum"
end
//}... -
Exception
# to _ json(*args) -> String (113.0) -
自身を JSON 形式の文字列に変換して返します。
...erator::GeneratorMethods::Hash#to_json を呼び出しています。
@param args 引数はそのまま JSON::Generator::GeneratorMethods::Hash#to_json に渡されます。
//emlist[例][ruby]{
require "json/add/core"
begin
0/0
rescue => e
e.to_json # => "{\"json_class\":\"ZeroDivisionError\......",\"m\":\"divided by 0\",\"b\":[\"/path/to/test.rb:4:in `/'\",\"/path/to/test.rb:4:in `<main>'\"]}"
end
//}
@see JSON::Generator::GeneratorMethods::Hash#to_json... -
Exception
# to _ s -> String (113.0) -
エラーメッセージをあらわす文字列を返します。
...エラーメッセージをあらわす文字列を返します。
//emlist[例][ruby]{
begin
1 + nil
rescue => e
p e.message #=> "nil can't be coerced into Fixnum"
end
//}... -
MatchData
# end(n) -> Integer | nil (113.0) -
n 番目の部分文字列終端のオフセットを返します。
...がマッチしていなければ nil を返します。
@param n 部分文字列を指定する数値。
@raise IndexError 範囲外の n を指定した場合に発生します。
//emlist[例][ruby]{
/(foo)(bar)(BAZ)?/ =~ "foobarbaz"
p $~.end(0) # => 6
p $~.end(1) # => 3
p $~.end(2) # =>......6
p $~.end(3) # => nil
p $~.end(4) # => `end': index 4 out of matches (IndexError)
//}
@see MatchData#begin... -
SignalException
# signm -> String (113.0) -
self.message のエイリアスです。
...self.message のエイリアスです。
//emlist[例][ruby]{
begin
Process.kill('HUP', Process.pid)
sleep
rescue SignalException => e
puts e.signm # => SIGHUP
end
//}... -
SignalException
# signo -> Integer (113.0) -
self のシグナル番号を返します。
...self のシグナル番号を返します。
//emlist[例][ruby]{
p Signal.signame(1) # => "HUP"
begin
Process.kill('HUP', Process.pid)
sleep
rescue SignalException => e
p e.signo # => 1
end
//}...