1733件ヒット
[401-500件を表示]
(0.076秒)
ライブラリ
- ビルトイン (1127)
- json (12)
-
json
/ add / exception (12) -
net
/ http (60) - openssl (12)
- optparse (24)
-
rubygems
/ command (12) - shell (18)
-
shell
/ command-processor (18) -
shell
/ filter (18) - socket (48)
- strscan (84)
- thread (12)
- win32ole (24)
- zlib (252)
クラス
- Array (84)
- BasicSocket (12)
-
Encoding
:: Converter (48) -
Encoding
:: InvalidByteSequenceError (24) -
Encoding
:: UndefinedConversionError (12) - Enumerator (12)
-
Enumerator
:: ArithmeticSequence (28) - Exception (140)
-
File
:: Stat (12) - FrozenError (6)
-
Gem
:: Command (12) - IO (12)
- Integer (23)
-
JSON
:: State (12) - KeyError (16)
- LoadError (12)
- LocalJumpError (24)
- MatchData (50)
- Module (12)
- Mutex (2)
- NameError (44)
-
Net
:: HTTPResponse (12) - NoMethodError (12)
- Object (12)
-
OpenSSL
:: SSL :: SSLContext (12) - OptionParser (24)
- Random (36)
- Range (91)
- Regexp (24)
- Shell (18)
-
Shell
:: CommandProcessor (18) -
Shell
:: Filter (18) - SignalException (24)
- Socket (12)
- StopIteration (12)
- String (144)
- StringScanner (84)
- SystemCallError (12)
- SystemExit (24)
- Thread (60)
-
Thread
:: Mutex (10) -
Thread
:: Queue (36) -
Thread
:: SizedQueue (36) - TracePoint (12)
- UDPSocket (12)
- UNIXServer (12)
- UncaughtThrowError (33)
- WIN32OLE (24)
-
Zlib
:: GzipReader (216) -
Zlib
:: GzipWriter (24) -
Zlib
:: Inflate (12)
モジュール
- Comparable (12)
-
Net
:: HTTPExceptions (12) -
Net
:: HTTPHeader (36)
キーワード
-
/ (11) - == (19)
- =~ (12)
- [] (138)
- accept (12)
-
accept
_ nonblock (12) - args (12)
- at (12)
- backtrace (12)
-
backtrace
_ locations (12) -
beginning
_ of _ line? (12) - begins? (12)
- bol? (12)
- bytebegin (2)
-
ca
_ file= (12) - cause (12)
-
check
_ circular? (12) - clamp (12)
- close (12)
-
connect
_ nonblock (12) - cover? (19)
- deq (24)
- div (12)
- each (24)
-
each
_ byte (24) -
each
_ line (24) - end (31)
- eof (12)
- eof? (12)
- errno (12)
-
error
_ bytes (12) -
error
_ char (12) - exception (24)
- exit (12)
-
exit
_ value (12) - fetch (72)
- finish (12)
- first (24)
-
fixed
_ encoding? (12) - getc (12)
- getpeereid (12)
- gets (12)
- hash (7)
-
incomplete
_ input? (12) -
initialize
_ copy (12) - inspect (12)
- key (8)
- kill (12)
- last (24)
- lineno (12)
- lineno= (12)
-
local
_ variables (10) - mkdir (18)
- name (12)
- next (12)
- offset (24)
-
ole
_ get _ methods (12) -
ole
_ query _ interface (12) - path (12)
- peek (12)
- peep (12)
- pointer= (12)
- pop (24)
- pos= (12)
-
primitive
_ convert (48) -
public
_ constant (12) - raise (12)
-
raised
_ exception (12) - rand (36)
- read (12)
- readbyte (12)
- readchar (12)
- readline (12)
- readlines (12)
- reason (12)
- receiver (24)
-
recvfrom
_ nonblock (12) - reject (12)
- response (12)
- result (12)
- rewind (12)
-
set
_ backtrace (12) -
set
_ dictionary (12) - shift (24)
- signm (12)
- signo (12)
- slice (72)
- status (12)
- sticky? (12)
- success? (12)
- tag (11)
- terminate (12)
- test (18)
-
to
_ json (12) -
to
_ s (35) - ungetc (12)
- unlock (12)
- unscan (12)
- value (23)
検索結果
先頭5件
- Array
# fetch(nth) {|nth| . . . } -> object - Array
# fetch(nth , ifnone) -> object - BasicSocket
# getpeereid -> [Integer , Integer] - Encoding
:: Converter # primitive _ convert(source _ buffer , destination _ buffer) -> Symbol - Encoding
:: Converter # primitive _ convert(source _ buffer , destination _ buffer , destination _ byteoffset) -> Symbol
-
Array
# fetch(nth) {|nth| . . . } -> object (7.0) -
nth 番目の要素を返します。
...ておらず、 nth 番目の要
素も存在しなかった場合に発生します。
//emlist[例][ruby]{
a = [1, 2, 3, 4, 5]
begin
p a.fetch(10)
rescue IndexError => err
puts err #=> index 10 out of array
end
p a.fetch(10, 999) #=> 999
result = a.fetch(10){|nth|
print... -
Array
# fetch(nth , ifnone) -> object (7.0) -
nth 番目の要素を返します。
...ておらず、 nth 番目の要
素も存在しなかった場合に発生します。
//emlist[例][ruby]{
a = [1, 2, 3, 4, 5]
begin
p a.fetch(10)
rescue IndexError => err
puts err #=> index 10 out of array
end
p a.fetch(10, 999) #=> 999
result = a.fetch(10){|nth|
print... -
BasicSocket
# getpeereid -> [Integer , Integer] (7.0) -
Unix ドメインソケットにおいて接続相手の euid と egid を 返します。
...が Unix ドメインソケットでない場合の返り値は
不定です。
require 'socket'
Socket.unix_server_loop("/tmp/sock") {|s|
begin
euid, egid = s.getpeereid
# Check the connected client is myself or not.
next if euid != Process.uid
# do s... -
Encoding
:: Converter # primitive _ convert(source _ buffer , destination _ buffer) -> Symbol (7.0) -
エンコーディング変換のためのメソッドの中で、もっとも細かな扱いが可能なメソッドです。
...source_buffer_empty
* :finished
//emlist[][ruby]{
ec = Encoding::Converter.new("UTF-8", "EUC-JP")
src = "abc\x81あいう\u{20bb7}\xe3"
dst = ''
begin
ret = ec.primitive_convert(src, dst)
p [ret, src, dst, ec.primitive_errinfo]
case ret
when :invalid_byte_sequence
ec.insert_output(ec... -
Encoding
:: Converter # primitive _ convert(source _ buffer , destination _ buffer , destination _ byteoffset) -> Symbol (7.0) -
エンコーディング変換のためのメソッドの中で、もっとも細かな扱いが可能なメソッドです。
...source_buffer_empty
* :finished
//emlist[][ruby]{
ec = Encoding::Converter.new("UTF-8", "EUC-JP")
src = "abc\x81あいう\u{20bb7}\xe3"
dst = ''
begin
ret = ec.primitive_convert(src, dst)
p [ret, src, dst, ec.primitive_errinfo]
case ret
when :invalid_byte_sequence
ec.insert_output(ec... -
Encoding
:: Converter # primitive _ convert(source _ buffer , destination _ buffer , destination _ byteoffset , destination _ bytesize) -> Symbol (7.0) -
エンコーディング変換のためのメソッドの中で、もっとも細かな扱いが可能なメソッドです。
...source_buffer_empty
* :finished
//emlist[][ruby]{
ec = Encoding::Converter.new("UTF-8", "EUC-JP")
src = "abc\x81あいう\u{20bb7}\xe3"
dst = ''
begin
ret = ec.primitive_convert(src, dst)
p [ret, src, dst, ec.primitive_errinfo]
case ret
when :invalid_byte_sequence
ec.insert_output(ec... -
Encoding
:: Converter # primitive _ convert(source _ buffer , destination _ buffer , destination _ byteoffset , destination _ bytesize , options) -> Symbol (7.0) -
エンコーディング変換のためのメソッドの中で、もっとも細かな扱いが可能なメソッドです。
...source_buffer_empty
* :finished
//emlist[][ruby]{
ec = Encoding::Converter.new("UTF-8", "EUC-JP")
src = "abc\x81あいう\u{20bb7}\xe3"
dst = ''
begin
ret = ec.primitive_convert(src, dst)
p [ret, src, dst, ec.primitive_errinfo]
case ret
when :invalid_byte_sequence
ec.insert_output(ec... -
Encoding
:: InvalidByteSequenceError # error _ bytes -> String (7.0) -
エラー発生時に捨てられたバイト列を返します。
...エラー発生時に捨てられたバイト列を返します。
//emlist[例][ruby]{
ec = Encoding::Converter.new("EUC-JP", "ISO-8859-1")
begin
ec.convert("abc\xA1\xFFdef")
rescue Encoding::InvalidByteSequenceError
p $!
#=> #<Encoding::InvalidByteSequenceError: "\xA1" followed by "\xFF" o... -
Encoding
:: UndefinedConversionError # error _ char -> String (7.0) -
エラーを発生させた1文字を文字列で返します。
...エラーを発生させた1文字を文字列で返します。
//emlist[例][ruby]{
ec = Encoding::Converter.new("UTF-8", "EUC-JP")
begin
ec.convert("\u{a0}")
rescue Encoding::UndefinedConversionError
puts $!.error_char.dump #=> "\u{a0}"
end
//}...