2942件ヒット
[1-100件を表示]
(0.129秒)
ライブラリ
- ビルトイン (1618)
- csv (44)
- digest (44)
- drb (11)
- etc (11)
- fiddle (22)
-
fiddle
/ import (11) -
io
/ console (11) - ipaddr (11)
-
irb
/ ext / history (11) -
irb
/ ext / save-history (11) - logger (11)
- matrix (99)
- mkmf (66)
-
net
/ ftp (18) -
net
/ http (110) -
net
/ imap (22) - openssl (99)
- optparse (107)
- pp (22)
- prettyprint (1)
- prime (11)
- rake (11)
-
rexml
/ document (11) - ripper (22)
-
ripper
/ filter (22) - shell (36)
-
shell
/ command-processor (24) -
shell
/ filter (24) - socket (62)
- stringio (47)
- strscan (66)
- thread (4)
- uri (11)
-
webrick
/ httpresponse (11) - win32ole (88)
- zlib (121)
クラス
-
ARGF
. class (58) - Array (479)
- BasicSocket (22)
- CSV (22)
-
CSV
:: FieldInfo (22) -
DRb
:: DRbObject (11) -
Digest
:: Base (44) - Dir (32)
- Enumerator (11)
-
Enumerator
:: ArithmeticSequence (6) -
Enumerator
:: Chain (6) -
Fiddle
:: Function (22) - File (11)
-
File
:: Stat (44) - Float (51)
- IO (186)
- IPAddr (11)
-
IRB
:: Context (22) - Integer (125)
- Logger (11)
- MatchData (48)
- Matrix (99)
- Method (11)
- Module (11)
-
Net
:: FTP :: MLSxEntry (18) -
Net
:: HTTP (88) -
Net
:: IMAP (11) -
Net
:: IMAP :: ThreadMember (11) - Numeric (1)
- Object (22)
-
OpenSSL
:: OCSP :: BasicResponse (11) -
OpenSSL
:: PKey :: EC (11) -
OpenSSL
:: SSL :: SSLContext (55) -
OpenSSL
:: SSL :: SSLSocket (11) -
OpenSSL
:: X509 :: Store (11) - OptionParser (107)
- PrettyPrint (1)
-
Prime
:: PseudoPrimeGenerator (11) - Proc (22)
-
Process
:: Status (33) -
RDoc
:: Options (11) -
REXML
:: Parent (11) - Random (33)
- Range (11)
- Rational (55)
- Regexp (33)
- Ripper (22)
-
Ripper
:: Filter (22) - Shell (36)
-
Shell
:: CommandProcessor (24) -
Shell
:: Filter (24) -
Socket
:: Ifaddr (7) - String (125)
- StringIO (47)
- StringScanner (66)
- Symbol (14)
- SystemCallError (11)
- TCPServer (11)
-
Thread
:: Queue (22) - Time (11)
- TracePoint (128)
- UNIXServer (11)
- UNIXSocket (11)
-
URI
:: Generic (11) - UnboundMethod (11)
-
WEBrick
:: HTTPResponse (11) - WIN32OLE (11)
-
WIN32OLE
_ METHOD (44) -
WIN32OLE
_ TYPE (11) -
WIN32OLE
_ VARIABLE (11) -
WIN32OLE
_ VARIANT (11) -
Zlib
:: GzipReader (55) -
Zlib
:: GzipWriter (66)
モジュール
- Enumerable (55)
-
Fiddle
:: Importer (11) - Kernel (66)
-
Net
:: HTTPHeader (22) -
Rake
:: TaskManager (11)
キーワード
- << (11)
- <=> (44)
- =~ (33)
- [] (72)
-
_ _ drbref (11) - arity (11)
- at (11)
- begin (11)
- bind (11)
- binding (11)
-
block
_ length (11) -
bsearch
_ index (9) - byteindex (2)
- byteoffset (4)
- byterindex (2)
- bytes (11)
- call (11)
-
callee
_ id (11) - ceil (23)
-
check
_ signedness (22) -
check
_ sizeof (22) - codepoints (64)
- cofactor (11)
-
cofactor
_ expansion (11) - column (22)
- combination (22)
-
content
_ length (22) -
continue
_ timeout (11) - count (66)
-
coverage
_ report (11) - cycle (22)
- debug (6)
- debug? (6)
-
default
_ port (11) -
defined
_ class (11) -
delete
_ at (11) -
digest
_ length (11) - downto (22)
-
each
_ codepoint (88) - end (11)
- errno (11)
- error (11)
-
eval
_ history (11) -
eval
_ script (6) - event (11)
-
event
_ interface (11) - exist? (11)
- exitstatus (11)
- expunge (11)
- facts (9)
- fcntl (11)
- fetch (33)
- fileno (10)
-
find
_ index (66) - first (22)
- first? (1)
- flatten (11)
- flatten! (11)
- floor (24)
- getbyte (44)
- getc (11)
- getpeereid (11)
- helpcontext (22)
- index (77)
- inspect (11)
-
instruction
_ sequence (6) - intern (11)
-
internal
_ encoding (33) -
laplace
_ expansion (11) - last (22)
- length (22)
- line (11)
- lineno (44)
-
local
_ port (11) - match (3)
- match? (11)
-
matched
_ size (11) - matchedsize (11)
-
method
_ id (11) - offset (22)
-
ole
_ query _ interface (11) -
open
_ timeout (11) - order (32)
- order! (16)
- pack (19)
- parameters (6)
- parse (16)
- parse! (8)
- path (11)
- pathconf (11)
- pending (11)
- permutation (22)
- permute (16)
- permute! (8)
- pid (22)
- pop (22)
- pos (44)
-
pretty
_ print (11) -
pretty
_ print _ instance _ variables (11) - print (11)
- printf (11)
-
proxy
_ port (11) - proxyport (11)
- ptr (11)
-
public
_ key (11) - putc (11)
- pwrite (7)
-
raised
_ exception (11) - rand (33)
-
range
_ length (11) - raw (11)
-
read
_ timeout (11) - readbyte (11)
- readchar (11)
-
recv
_ io (11) - recvmsg (11)
-
repeated
_ combination (22) -
repeated
_ permutation (22) -
return
_ value (11) - rindex (33)
- round (34)
- sample (44)
-
save
_ history (11) - seqno (11)
- shift (22)
- size (94)
- size? (29)
-
size
_ opt _ params (11) -
size
_ params (11) - skip (11)
-
skip
_ until (11) -
source
_ location (33) -
ssl
_ timeout (22) - status (11)
- stopsig (11)
- subsec (11)
- sum (11)
-
summary
_ width (11) - sysaccept (22)
- sysseek (11)
- syswrite (11)
- tell (44)
- termsig (11)
- test (18)
- timeout (11)
- times (22)
-
to
_ i (19) - tr (11)
- trace (11)
- truncate (23)
-
try
_ constant (22) - unpack (11)
-
upper
_ bound (11) - upto (22)
- varkind (11)
- vartype (11)
-
verify
_ depth (11) -
verify
_ mode (22) - vhid (7)
-
world
_ readable? (11) -
world
_ writable? (11) - write (22)
-
write
_ nonblock (11) - ~ (11)
検索結果
先頭5件
-
Integer
# |(other) -> Integer (21213.0) -
ビット二項演算子。論理和を計算します。
...ビット二項演算子。論理和を計算します。
@param other 数値
//emlist[][ruby]{
1 | 1 # => 1
2 | 3 # => 3
//}... -
String
# each _ codepoint {|codepoint| block } -> self (6314.0) -
文字列の各コードポイントに対して繰り返します。
...に対して繰り返します。
UTF-8/UTF-16(BE|LE)/UTF-32(BE|LE) 以外のエンコーディングに対しては
各文字のバイナリ表現由来の値になります。
//emlist[例][ruby]{
#coding:UTF-8
"hello わーるど".each_codepoint.to_a
# => [104, 101, 108, 108, 111, 32, 12431, 12......540, 12427, 12393]
"hello わーるど".encode('euc-jp').each_codepoint.to_a
# => [104, 101, 108, 108, 111, 32, 42223, 41404, 42219, 42185]
//}
@see String#codepoints... -
StringIO
# codepoints {|codepoint| . . . } -> self (6303.0) -
自身の各コードポイントに対して繰り返します。
...自身の各コードポイントに対して繰り返します。
@see IO#each_codepoint... -
StringIO
# each _ codepoint {|codepoint| . . . } -> self (6303.0) -
自身の各コードポイントに対して繰り返します。
...自身の各コードポイントに対して繰り返します。
@see IO#each_codepoint... -
String
# codepoints {|codepoint| block } -> self (6302.0) -
文字列の各コードポイントの配列を返します。(self.each_codepoint.to_a と同じです)
...列を返します。(self.each_codepoint.to_a と同じです)
//emlist[例][ruby]{
#coding:UTF-8
"hello わーるど".codepoints
# => [104, 101, 108, 108, 111, 32, 12431, 12540, 12427, 12393]
//}
ブロックが指定された場合は String#each_codepoint と同じように動作します。......Ruby 2.6 までは deprecated の警告が出ますが、Ruby 2.7 で警告は削除されました。
@see String#each_codepoint... -
StringIO
# each _ codepoint {|codepoint| . . . } -> self (6302.0) -
自身の各コードポイントに対して繰り返します。
...自身の各コードポイントに対して繰り返します。
@see IO#each_codepoint... -
IO
# each _ codepoint {|c| . . . } -> self (6226.0) -
IO の各コードポイントに対して繰り返しブロックを呼びだします。
...にはコードポイントを表す整数が渡されます。
ブロックを省略した場合には、Enumerator を返します。
//emlist[例][ruby]{
IO.write("testfile", "abcdeあ")
File.open("testfile") do |f|
f.each_codepoint { |i| p i }
end
# => 97
# 98
# 99
# 100
# 101
# 12354
//}... -
IO
# internal _ encoding -> Encoding | nil (6214.0) -
IO の内部エンコーディングを返します。 内部エンコーディングが指定されていない場合は nil を返します。
...エンコーディングが指定されていない場合は nil を返します。
//emlist[例][ruby]{
IO.write("testfile", "abcde")
File.open("testfile") do |f|
p f.internal_encoding # => nil
f.set_encoding("ASCII-8BIT", "EUC-JP")
p f.internal_encoding # => #<Encoding:EUC-JP>
end
//}... -
ARGF
. class # each _ codepoint { |c| . . . } -> self (6209.0) -
self の各コードポイントに対して繰り返しブロックを呼びだします。
...す。
例:
# $ echo "line1\n" > test1.txt
# $ echo "line2\n" > test2.txt
# $ ruby test.rb test1.txt test2.txt
# test.rb
ARGF.each_codepoint # => #<Enumerator: ARGF:each_codepoint>
ARGF.each_codepoint{|e|print e, ","} # => 108,105,110,101,49,10,108,105,110,101,50,10,... -
ARGF
. class # codepoints { |c| . . . } -> self (6203.0) -
このメソッドは obsolete です。 代わりに ARGF.class#each_codepoint を使用してください。 使用すると警告メッセージが表示されます。
...このメソッドは obsolete です。
代わりに ARGF.class#each_codepoint を使用してください。
使用すると警告メッセージが表示されます。... -
ARGF
. class # internal _ encoding -> Encoding | nil (6202.0) -
ARGF から読み込んだ文字列の内部エンコーディングを返します。 内部エンコーディングが指定されていない場合は nil を返します。
...。
例:
# $ ruby -Eutf-8 test.rb
# test.rb
ARGF.internal_encoding # => #<Encoding:UTF-8>
ARGF.set_encoding('utf-8','ascii')
ARGF.internal_encoding # => #<Encoding:US-ASCII>
例:
ARGF.binmode
ARGF.internal_encoding # => nil
@see IO, ARGF.class#exte...