3213件ヒット
[1-100件を表示]
(0.313秒)
ライブラリ
- ビルトイン (1774)
- csv (48)
- digest (48)
- drb (12)
- etc (12)
- fiddle (24)
-
fiddle
/ import (12) -
io
/ console (12) - ipaddr (12)
-
irb
/ ext / history (12) -
irb
/ ext / save-history (12) - logger (12)
- matrix (108)
- mkmf (72)
-
net
/ ftp (20) -
net
/ http (120) -
net
/ imap (24) - openssl (108)
- optparse (120)
- pp (24)
- prettyprint (1)
- prime (12)
- rake (12)
-
rexml
/ document (12) - ripper (24)
-
ripper
/ filter (24) - shell (36)
-
shell
/ command-processor (24) -
shell
/ filter (24) - socket (68)
- stringio (50)
- strscan (72)
- thread (4)
- uri (12)
-
webrick
/ httpresponse (12) - win32ole (96)
- zlib (132)
クラス
-
ARGF
. class (62) - Array (523)
- BasicSocket (24)
- CSV (24)
-
CSV
:: FieldInfo (24) -
DRb
:: DRbObject (12) -
Digest
:: Base (48) - Dir (35)
- Enumerator (12)
-
Enumerator
:: ArithmeticSequence (7) -
Enumerator
:: Chain (7) -
Fiddle
:: Function (24) - File (12)
-
File
:: Stat (48) - Float (57)
- IO (202)
- IPAddr (12)
-
IRB
:: Context (24) - Integer (136)
- Logger (12)
- MatchData (58)
- Matrix (108)
- Method (12)
- Module (12)
-
Net
:: FTP :: MLSxEntry (20) -
Net
:: HTTP (96) -
Net
:: IMAP (12) -
Net
:: IMAP :: ThreadMember (12) - Numeric (1)
- Object (24)
-
OpenSSL
:: OCSP :: BasicResponse (12) -
OpenSSL
:: PKey :: EC (12) -
OpenSSL
:: SSL :: SSLContext (60) -
OpenSSL
:: SSL :: SSLSocket (12) -
OpenSSL
:: X509 :: Store (12) - OptionParser (120)
- PrettyPrint (1)
-
Prime
:: PseudoPrimeGenerator (12) - Proc (24)
-
Process
:: Status (36) -
RDoc
:: Options (12) -
REXML
:: Parent (12) - Random (36)
- Range (12)
- Rational (60)
- Regexp (36)
- Ripper (24)
-
Ripper
:: Filter (24) - Shell (36)
-
Shell
:: CommandProcessor (24) -
Shell
:: Filter (24) -
Socket
:: Ifaddr (8) - String (138)
- StringIO (50)
- StringScanner (72)
- Symbol (15)
- SystemCallError (12)
- TCPServer (12)
-
Thread
:: Queue (24) - Time (12)
- TracePoint (141)
- UNIXServer (12)
- UNIXSocket (12)
-
URI
:: Generic (12) - UnboundMethod (12)
-
WEBrick
:: HTTPResponse (12) - WIN32OLE (12)
-
WIN32OLE
_ METHOD (48) -
WIN32OLE
_ TYPE (12) -
WIN32OLE
_ VARIABLE (12) -
WIN32OLE
_ VARIANT (12) -
Zlib
:: GzipReader (60) -
Zlib
:: GzipWriter (72)
モジュール
- Enumerable (60)
-
Fiddle
:: Importer (12) - Kernel (72)
-
Net
:: HTTPHeader (24) -
Rake
:: TaskManager (12)
キーワード
- << (12)
- <=> (48)
- =~ (36)
- [] (78)
-
_ _ drbref (12) - arity (12)
- at (12)
- begin (12)
- bind (12)
- binding (12)
-
block
_ length (12) -
bsearch
_ index (10) - bytebegin (2)
- byteend (2)
- byteindex (3)
- byteoffset (6)
- byterindex (3)
- bytes (12)
- call (12)
-
callee
_ id (12) - ceil (25)
-
check
_ signedness (24) -
check
_ sizeof (24) - codepoints (66)
- cofactor (12)
-
cofactor
_ expansion (12) - column (24)
- combination (24)
-
content
_ length (24) -
continue
_ timeout (12) - count (72)
-
coverage
_ report (12) - cycle (24)
- debug (6)
- debug? (6)
-
default
_ port (12) -
defined
_ class (12) -
delete
_ at (12) -
digest
_ length (12) - downto (24)
-
each
_ codepoint (96) - end (12)
- errno (12)
- error (12)
-
eval
_ history (12) -
eval
_ script (7) - event (12)
-
event
_ interface (12) - exist? (12)
- exitstatus (12)
- expunge (12)
- facts (10)
- fcntl (12)
- fetch (36)
- fileno (11)
-
find
_ index (72) - first (24)
- first? (1)
- flatten (12)
- flatten! (12)
- floor (26)
- getbyte (48)
- getc (12)
- getpeereid (12)
- helpcontext (24)
- index (84)
- inspect (12)
-
instruction
_ sequence (7) - intern (12)
-
internal
_ encoding (36) -
laplace
_ expansion (12) - last (24)
- length (24)
- line (12)
- lineno (48)
-
local
_ port (12) - match (3)
- match? (12)
-
matched
_ size (12) - matchedsize (12)
-
method
_ id (12) - offset (24)
-
ole
_ query _ interface (12) -
open
_ timeout (12) - order (36)
- order! (18)
- pack (21)
- parameters (7)
- parse (18)
- parse! (9)
- path (12)
- pathconf (12)
- pending (12)
- permutation (24)
- permute (18)
- permute! (9)
- pid (24)
- pop (24)
- pos (48)
-
pretty
_ print (12) -
pretty
_ print _ instance _ variables (12) - print (12)
- printf (12)
-
proxy
_ port (12) - proxyport (12)
- ptr (12)
-
public
_ key (12) - putc (12)
- pwrite (8)
-
raised
_ exception (12) - rand (36)
-
range
_ length (12) - raw (12)
-
read
_ timeout (12) - readbyte (12)
- readchar (12)
-
recv
_ io (12) - recvmsg (12)
-
repeated
_ combination (24) -
repeated
_ permutation (24) -
return
_ value (12) - rindex (36)
- round (37)
- sample (48)
-
save
_ history (12) - seqno (12)
- shift (24)
- size (102)
- size? (30)
-
size
_ opt _ params (12) -
size
_ params (12) - skip (12)
-
skip
_ until (12) -
source
_ location (36) -
ssl
_ timeout (24) - status (12)
- stopsig (12)
- subsec (12)
- sum (12)
-
summary
_ width (12) - sysaccept (24)
- sysseek (12)
- syswrite (12)
- tell (48)
- termsig (12)
- test (18)
- timeout (12)
- times (24)
-
to
_ i (21) - tr (12)
- trace (12)
- truncate (25)
-
try
_ constant (24) - unpack (12)
-
upper
_ bound (12) - upto (24)
- varkind (12)
- vartype (12)
-
verify
_ depth (12) -
verify
_ mode (24) - vhid (8)
-
world
_ readable? (12) -
world
_ writable? (12) - write (24)
-
write
_ nonblock (12) - ~ (12)
検索結果
先頭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...