種類
ライブラリ
- English (22)
- ビルトイン (774)
- benchmark (11)
- bigdecimal (25)
-
cgi
/ core (77) -
cgi
/ html (176) -
cgi
/ session (55) -
cgi
/ session / pstore (11) - csv (33)
- drb (11)
- e2mmap (12)
- etc (231)
- fiddle (110)
-
fiddle
/ import (44) - fileutils (275)
- getoptlong (11)
-
io
/ console / size (11) -
io
/ wait (11) -
irb
/ context (11) -
irb
/ input-method (66) -
irb
/ output-method (11) - json (33)
- logger (8)
- matrix (264)
-
minitest
/ spec (1) -
minitest
/ unit (10) - monitor (22)
-
net
/ http (33) -
net
/ imap (44) -
net
/ smtp (22) - nkf (11)
- open-uri (77)
- open3 (55)
- openssl (165)
- optparse (154)
- prime (33)
- psych (85)
- rake (33)
-
rdoc
/ context (44) -
rdoc
/ markdown (11) -
rdoc
/ parser / ruby (11) -
rdoc
/ top _ level (11) - readline (11)
- resolv (22)
-
rexml
/ document (264) -
rexml
/ parsers / pullparser (11) -
rexml
/ sax2listener (22) -
rinda
/ tuplespace (11) - rubygems (22)
-
rubygems
/ command (22) -
rubygems
/ commands / unpack _ command (11) -
rubygems
/ dependency (11) -
rubygems
/ dependency _ installer (33) -
rubygems
/ dependency _ list (22) -
rubygems
/ ext / configure _ builder (11) -
rubygems
/ ext / ext _ conf _ builder (11) -
rubygems
/ ext / rake _ builder (11) -
rubygems
/ package / tar _ input (33) -
rubygems
/ package / tar _ output (11) -
rubygems
/ package / tar _ writer (22) -
rubygems
/ remote _ fetcher (11) -
rubygems
/ requirement (11) -
rubygems
/ security (44) -
rubygems
/ source _ index (77) -
rubygems
/ specification (176) -
rubygems
/ user _ interaction (22) -
rubygems
/ version (11) - shell (6)
-
shell
/ command-processor (12) -
shell
/ filter (6) - socket (66)
- stringio (62)
- syslog (44)
- thread (2)
- timeout (19)
- tracer (11)
- uri (11)
-
webrick
/ cgi (11) -
webrick
/ httpauth / authenticator (22) -
webrick
/ httpserver (22) -
webrick
/ httpservlet / abstract (11) -
webrick
/ httpservlet / filehandler (11) -
win32
/ registry (44) - zlib (154)
クラス
-
ARGF
. class (22) - Array (58)
- BigDecimal (13)
- Binding (6)
-
CGI
:: Session (11) -
CGI
:: Session :: FileStore (11) -
CGI
:: Session :: MemoryStore (11) -
CGI
:: Session :: NullStore (22) -
CGI
:: Session :: PStore (11) - CSV (33)
-
DRb
:: DRbUnknown (11) - Encoding (22)
-
Encoding
:: Converter (77) -
Encoding
:: InvalidByteSequenceError (22) -
Encoding
:: UndefinedConversionError (55) - Exception (7)
-
Fiddle
:: Closure (11) -
Fiddle
:: Closure :: BlockCaller (11) -
Fiddle
:: Function (88) - File (22)
-
Gem
:: Command (22) -
Gem
:: Commands :: UnpackCommand (11) -
Gem
:: Dependency (11) -
Gem
:: DependencyInstaller (33) -
Gem
:: DependencyList (22) -
Gem
:: Ext :: ConfigureBuilder (11) -
Gem
:: Ext :: ExtConfBuilder (11) -
Gem
:: Ext :: RakeBuilder (11) -
Gem
:: LoadError (11) -
Gem
:: Package :: TarInput (33) -
Gem
:: Package :: TarOutput (11) -
Gem
:: Package :: TarWriter :: BoundedStream (22) -
Gem
:: RemoteFetcher (11) -
Gem
:: Requirement (11) -
Gem
:: Security :: Policy (11) -
Gem
:: SourceIndex (77) -
Gem
:: Specification (176) -
Gem
:: Version (11) - GetoptLong (11)
- IO (118)
-
IRB
:: Context (11) -
IRB
:: StdioInputMethod (66) -
IRB
:: StdioOutputMethod (11) - Logger (8)
- Matrix (44)
-
Matrix
:: EigenvalueDecomposition (110) -
Matrix
:: LUPDecomposition (110) - Method (11)
-
MiniTest
:: Unit (1) - Module (36)
-
MonitorMixin
:: ConditionVariable (22) -
Net
:: HTTP (11) -
Net
:: HTTPGenericRequest (22) -
Net
:: IMAP :: BodyTypeMultipart (22) -
Net
:: IMAP :: ContinuationRequest (22) -
Net
:: SMTP (22) - Object (33)
-
OpenSSL
:: Config (11) -
OpenSSL
:: OCSP :: BasicResponse (11) -
OpenSSL
:: SSL :: SSLSocket (22) -
OpenSSL
:: X509 :: Extension (11) -
OpenSSL
:: X509 :: ExtensionFactory (22) - OptionParser (132)
- Prime (22)
-
Prime
:: TrialDivisionGenerator (11) -
Psych
:: Handler (11) -
Psych
:: Nodes :: Document (22) -
Psych
:: Visitors :: YAMLTree (11) -
RDoc
:: Context (33) -
RDoc
:: Context :: Section (11) -
RDoc
:: Markdown (11) -
RDoc
:: Options (154) -
RDoc
:: Parser :: Ruby (11) -
RDoc
:: TopLevel (11) -
REXML
:: AttlistDecl (11) -
REXML
:: Attribute (11) -
REXML
:: Child (11) -
REXML
:: Declaration (11) -
REXML
:: DocType (11) -
REXML
:: Document (99) -
REXML
:: Element (11) -
REXML
:: Entity (11) -
REXML
:: ExternalEntity (11) -
REXML
:: Formatters :: Default (11) -
REXML
:: Instruction (11) -
REXML
:: NotationDecl (33) -
REXML
:: Parsers :: PullEvent (11) -
REXML
:: XMLDecl (11) -
Rake
:: Application (11) -
Rake
:: FileList (11) - Rational (30)
-
Resolv
:: DNS :: Resource :: IN :: SRV (22) -
Rinda
:: TupleSpace (11) -
RubyVM
:: InstructionSequence (82) - Shell (6)
-
Shell
:: CommandProcessor (12) -
Shell
:: Filter (6) - Socket (11)
-
Socket
:: AncillaryData (22) - String (44)
- StringIO (62)
-
Thread
:: Backtrace :: Location (11) -
Thread
:: ConditionVariable (11) - Tracer (11)
- UDPSocket (11)
- UNIXSocket (22)
-
URI
:: LDAP (11) - UnboundMethod (11)
-
WEBrick
:: CGI (11) -
WEBrick
:: HTTPServer (22) -
WEBrick
:: HTTPServlet :: AbstractServlet (11) -
WEBrick
:: HTTPServlet :: FileHandler (11) -
Win32
:: Registry (44) -
Zlib
:: Deflate (22) -
Zlib
:: GzipReader (55) -
Zlib
:: GzipWriter (55)
モジュール
- Benchmark (11)
-
CGI
:: HtmlExtension (176) -
CGI
:: QueryExtension (77) - Enumerable (11)
- Etc (231)
- Exception2MessageMapper (12)
-
Fiddle
:: Importer (44) - FileTest (11)
- FileUtils (275)
- GC (5)
-
Gem
:: DefaultUserInteraction (22) -
Gem
:: InstallUpdateOptions (11) -
Gem
:: LocalRemoteOptions (22) -
Gem
:: QuickLoader (11) -
Gem
:: Security (33) - JSON (33)
- Kernel (114)
- Marshal (22)
-
MiniTest
:: Assertions (9) - Open3 (55)
-
OpenSSL
:: Buffering (66) -
OpenSSL
:: OCSP (22) - OpenURI (22)
-
OpenURI
:: OpenRead (33) -
OptionParser
:: Arguable (22) - Psych (41)
-
REXML
:: Node (11) -
REXML
:: SAX2Listener (22) - Readline (11)
- Syslog (44)
- Timeout (19)
- URI (14)
-
WEBrick
:: HTTPAuth :: ProxyAuthenticator (22) - Zlib (22)
キーワード
-
$ DEFAULT _ INPUT (11) -
$ DEFAULT _ OUTPUT (11) -
$ stdout (11) -
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) - BigDecimal (12)
-
CS
_ GNU _ LIBPTHREAD _ VERSION (11) -
CS
_ POSIX _ V6 _ ILP32 _ OFF32 _ LDFLAGS (11) -
CS
_ POSIX _ V6 _ ILP32 _ OFFBIG _ LDFLAGS (11) -
CS
_ POSIX _ V6 _ LP64 _ OFF64 _ LDFLAGS (11) -
CS
_ POSIX _ V6 _ LPBIG _ OFFBIG _ LDFLAGS (11) -
CS
_ POSIX _ V6 _ WIDTH _ RESTRICTED _ ENVS (11) -
CS
_ POSIX _ V7 _ ILP32 _ OFF32 _ LDFLAGS (11) -
CS
_ POSIX _ V7 _ ILP32 _ OFFBIG _ LDFLAGS (11) -
CS
_ POSIX _ V7 _ LP64 _ OFF64 _ LDFLAGS (11) -
CS
_ POSIX _ V7 _ LPBIG _ OFFBIG _ LDFLAGS (11) -
CS
_ POSIX _ V7 _ THREADS _ CFLAGS (11) -
CS
_ POSIX _ V7 _ THREADS _ LDFLAGS (11) -
CS
_ POSIX _ V7 _ WIDTH _ RESTRICTED _ ENVS (11) - DECLARATION (11)
- DEFAULT (11)
-
DEFAULT
_ COMPRESSION (11) -
DEFAULT
_ EXTENSIONS (11) -
DEFAULT
_ OPTIONS (22) -
DEFAULT
_ RAKEFILES (11) -
DEFAULT
_ VERSION (11) -
EXCEPTION
_ UNDERFLOW (11) - GemVersions (11)
- InfoField (11)
- Integer (6)
-
NEWS for Ruby 2
. 2 . 0 (10) -
NEWS for Ruby 2
. 5 . 0 (7) -
NEWS for Ruby 2
. 6 . 0 (6) -
NEWS for Ruby 3
. 0 . 0 (4) -
NEWS for Ruby 3
. 1 . 0 (3) - NKF (11)
-
REVOKED
_ STATUS _ AFFILIATIONCHANGED (11) -
REVOKED
_ STATUS _ CESSATIONOFOPERATION (11) -
RUBY
_ DESCRIPTION (11) - RequestField (11)
-
SC
_ PRIORITY _ SCHEDULING (11) -
SC
_ RE _ DUP _ MAX (11) -
SC
_ THREAD _ CPUTIME (11) -
SC
_ THREAD _ DESTRUCTOR _ ITERATIONS (11) -
SC
_ THREAD _ PRIORITY _ SCHEDULING (11) -
SC
_ THREAD _ ROBUST _ PRIO _ INHERIT (11) -
SC
_ THREAD _ ROBUST _ PRIO _ PROTECT (11) -
SC
_ THREAD _ SAFE _ FUNCTIONS (11) - STDCALL (11)
- STDOUT (11)
-
USERNAME
_ COMPLETION _ PROC (11) - UndefinedConversionError (11)
- Win32ネイティブ版Rubyの互換性問題 (11)
- [] (11)
-
_ dump (11) - abi (11)
-
absolute
_ path (11) -
accept
_ encoding (11) -
add
_ bindir (11) -
add
_ bulk _ threshold _ option (11) -
add
_ class _ or _ module (22) -
add
_ dependency (11) -
add
_ development _ dependency (11) -
add
_ runtime _ dependency (11) -
add
_ spec (11) -
add
_ trusted _ cert (11) -
add
_ update _ sources _ option (11) -
add
_ value (11) -
assert
_ equal (1) -
assert
_ in _ delta (1) -
assert
_ in _ epsilon (1) -
assert
_ includes (1) -
assert
_ kind _ of (1) -
assert
_ operator (1) -
assert
_ respond _ to (1) -
assert
_ same (1) -
assert
_ send (1) -
assign
_ defaults (11) -
attribute
_ defaults (11) - benchmark (11)
- bind (11)
-
body
_ stream (11) -
body
_ stream= (11) - build (33)
-
build
_ cert (11) -
build
_ self _ signed _ cert (11) - call (11)
- cd (22)
- chdir (22)
- checkbox (11)
- chmod (11)
-
chmod
_ R (11) - chunk (11)
- codepoints (14)
-
const
_ source _ location (5) - copy (11)
- cp (11)
-
cp
_ r (11) -
create
_ body (11) -
create
_ ext (11) -
create
_ extension (11) -
current
_ section (11) - data (11)
-
def
_ builtin _ commands (6) -
def
_ exception (12) -
default
_ argv (11) -
default
_ console _ size (11) -
default
_ executable (11) -
default
_ internal (11) -
default
_ submission _ port (11) -
default
_ value (11) - deflate (22)
- delete (11)
-
destination
_ encoding (22) -
destination
_ encoding _ name (22) - det (11)
- determinant (11)
- disasm (22)
- disassemble (22)
- display (11)
- disposition (11)
-
do
_ OPTIONS (22) -
dry
_ run (11) -
dry
_ run= (11) - dummy? (11)
- dump (55)
- dup (11)
-
e
_ option _ supplied (11) - each (11)
-
each
_ byte (11) -
each
_ codepoint (22) -
each
_ line (11) - eigen (11)
- eigensystem (11)
-
eigenvalue
_ matrix (11) - eigenvalues (11)
-
eigenvector
_ matrix (11) -
eigenvector
_ matrix _ inv (11) - eigenvectors (11)
- encode (33)
- encoding (11)
-
entity
_ expansion _ limit (11) -
entity
_ expansion _ text _ limit (11) -
entity
_ expansion _ text _ limit= (11) - eof? (11)
-
error
_ char (11) - exception (11)
- exclude (11)
-
excluded
_ from _ list? (11) - extension (11)
- extensions (11)
- extern (11)
-
file
_ field (11) -
find
_ name (22) -
find
_ spec _ by _ name _ and _ version (11) -
force
_ output (11) -
force
_ update (11) - form (22)
-
get
_ one _ optional _ argument (11) -
get
_ path (11) - gets (11)
-
have
_ option? (11) - hidden (22)
- include? (11)
-
include
_ line _ numbers (11) -
infect
_ with _ assertions (1) -
inline
_ source (11) - install (22)
-
install
_ update _ defaults _ str (11) - instance (22)
- io (11)
- l (11)
- line (11)
-
line
_ numbers (11) -
line
_ numbers= (11) - link (11)
- ln (11)
-
ln
_ s (11) -
ln
_ sf (11) - load (11)
-
load
_ documents (8) -
load
_ from _ binary (9) -
load
_ from _ binary _ extra _ data (9) -
load
_ gemspec (11) -
load
_ specification (11) - lup (11)
-
lup
_ decomposition (11) - magnitude (8)
- makedirs (11)
- markup (11)
-
marshal
_ dump (22) - merge (11)
- mkdir (11)
-
mkdir
_ p (11) - mkpath (11)
-
module
_ function (19) - mount (11)
- move (11)
-
multipart
_ form (22) - mv (11)
- name (11)
- new (241)
-
node
_ type (11) - notationdecl (11)
- notationdecl? (11)
- of (11)
-
on
_ head (11) - open (121)
- open! (11)
-
open
_ uri (22) -
open
_ uri _ or _ path (11) - order! (44)
- out (18)
- p (11)
- pack (19)
- pack テンプレート文字列 (11)
- parse (11)
- parse! (11)
-
parse
_ stream (11) -
password
_ field (22) -
path
_ translated (11) - permute! (11)
-
pipeline
_ r (11) -
pipeline
_ rw (11) - pivots (11)
- popen2 (11)
- popen2e (11)
- popen3 (11)
- pread (7)
-
previous
_ sibling (11) -
previous
_ sibling _ node (11) -
prime
_ division (22) -
primitive
_ convert (44) - print (11)
- printf (22)
- priority (11)
-
processing
_ instruction (11) - ptr (11)
- public (11)
- puke (1)
- quiet (11)
-
radio
_ group (22) -
rake
_ extension (11) -
raw
_ data (11) -
rdoc
_ include (11) - read (44)
-
read
_ nonblock (44) -
readable
_ atfer _ eof? (11) - readchar (11)
- readline (11)
- readlines (11)
- readpartial (55)
-
recv
_ io (11) -
recvfrom
_ nonblock (11) -
remote
_ addr (11) -
remote
_ ident (11) -
remove
_ by _ name (11) -
remove
_ spec (11) - reopen (11)
-
repeated
_ combination (11) -
repeated
_ permutation (22) -
request
_ method (11) -
required
_ attribute (11) -
required
_ attribute? (11) -
required
_ attributes (11) -
required
_ ruby _ version (11) -
required
_ rubygems _ version (11) - restore (11)
- rmdir (11)
- round (11)
-
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 3 feature (11) -
ruby 1
. 8 . 4 feature (11) -
ruby 1
. 9 feature (11) -
rubygems
/ commands / specification _ command (11) -
runtime
_ dependencies (11) -
satisfied
_ by? (11) -
satisfies
_ requirement? (11) - search (11)
-
search
_ convpath (11) - select (22)
-
send
_ io (11) - sequence (11)
-
session
_ reused? (11) -
set
_ current _ section (11) -
set
_ debug _ output (22) -
set
_ encoding _ by _ bom (5) - setuid? (22)
-
show
_ lookup _ failure (11) - singular? (11)
- solve (11)
-
source
_ encoding (11) -
source
_ encoding _ name (11) -
source
_ location (28) - specification (11)
- start (11)
-
start
_ document (11) - status (11)
- stdout (11)
- succ (11)
- summarize (22)
-
summary
_ indent (11) -
summary
_ indent= (11) -
summary
_ width (11) -
summary
_ width= (11) - symlink (11)
- sysread (33)
- test (22)
-
text
_ field (22) - timeout (19)
-
to
_ a (22) -
to
_ ary (22) -
to
_ binary (9) -
to
_ i (11) -
trusted
_ cert _ path (11) -
udp
_ server _ recv (11) - ui (22)
- ungetc (11)
- union (17)
-
unix
_ rights (22) - unlink (11)
- unpack (11)
- update (55)
- uptodate? (11)
- v (11)
-
v
_ inv (11) -
verify
_ compaction _ references (5) - version (22)
-
version
_ requirement (11) -
version
_ requirements (11) - visibility (11)
- wait (22)
-
wait
_ readable (11) -
wait
_ until (11) -
warn
_ unless _ e _ option (11) -
warning
_ unless _ e _ option (11) - wrap (22)
- write (132)
-
zipped
_ stream (11)
検索結果
先頭5件
-
IO
. default _ console _ size -> [Integer , Integer] (33300.0) -
デフォルトの端末のサイズを [rows, columns] で返します。
...デフォルトの端末のサイズを [rows, columns] で返します。... -
IO
# dup -> IO (27500.0) -
レシーバと同じ IO を参照する新しい IO オブジェクトを返します。 参照しているファイル記述子は dup(2) されます。
...同じ IO を参照する新しい IO オブジェクトを返します。
参照しているファイル記述子は dup(2) されます。
clone の際に self は一旦 IO#flush されます。
フリーズした IO の clone は同様にフリーズされた IO を返しますが、
dup は内......しいフリーズされていない IO を返します。
@raise IOError 既に close されていた場合に発生します。
//emlist[例][ruby]{
clone_io = nil
IO.write("testfile", "test")
File.open("testfile") do |io|
clone_io = io.clone
end
clone_io.read # => "test"
clone_io.close
//}... -
IO
# read _ nonblock(maxlen , outbuf = nil , exception: true) -> String | Symbol | nil (27440.0) -
IO をノンブロッキングモードに設定し、 その後で read(2) システムコールにより 長さ maxlen を上限として読み込み、文字列として返します。 EAGAIN, EINTR などは Errno::EXXX 例外として呼出元に報告されます。
...
IO をノンブロッキングモードに設定し、
その後で read(2) システムコールにより
長さ maxlen を上限として読み込み、文字列として返します。
EAGAIN, EINTR などは Errno::EXXX 例外として呼出元に報告されます。
発生した例外 がErr......no::EAGAIN、 Errno::EWOULDBLOCK である場合は、
その例外オブジェクトに IO::WaitReadable が Object#extend
されます。
なお、バッファが空でない場合は、read_nonblock はバッファから読み込みます。この場合、read(2) システムコールは呼ば......れません。
このメソッドはノンブロッキングモードにする点を除いて IO#readpartial と
同じであることに注意してください。
バイナリ読み込みメソッドとして動作します。
既に EOF に達していれば EOFError が発生します。た... -
IO
# set _ encoding _ by _ bom -> Encoding | nil (27364.0) -
BOM から IO のエンコーディングを設定します。
...BOM から IO のエンコーディングを設定します。
自身が BOM から始まる場合、BOM を読み進めて外部エンコーディングをセットし、セットしたエンコーディングを返します。
BOM が見つからなかった場合は nil を返します。
自......ます。
//emlist[例][ruby]{
File.write("bom.txt", "\u{FEFF}abc")
File.open("bom.txt", "rb") do |io|
p io.set_encoding_by_bom #=> #<Encoding:UTF-8>
str = io.read
p str #=> "abc"
p str.encoding #=> #<Encoding:UTF-8>
end
File.write("nobom.txt", "abc......")
File.open("nobom.txt", "rb") do |io|
p io.set_encoding_by_bom #=> nil
end
//}... -
IO
# readpartial(maxlen , outbuf = "") -> String (27358.0) -
IO から長さ maxlen を上限として読み込み、文字列として返します。 即座に得られるデータが存在しないときにはブロックしてデータの到着を待ちます。 即座に得られるデータが 1byte でも存在すればブロックしません。
...
IO から長さ maxlen を上限として読み込み、文字列として返します。
即座に得られるデータが存在しないときにはブロックしてデータの到着を待ちます。
即座に得られるデータが 1byte でも存在すればブロックしません。
バ......dpartial はブロックを最小限に抑えることによって、
パイプ、ソケット、端末などのストリームに対して適切に動作するよう設計されています。
readpartial がブロックするのは次の全ての条件が満たされたときだけです。
* IO......なっていない
これらの条件が満たされる場合、何らかのデータが到着するか EOF になるまで readpartial はブロックします。
readpartial の結果は以下のようになります。
(1) バッファが空でなければ、そのバッファのデータを... -
IO
# codepoints -> Enumerator (27328.0) -
このメソッドは obsolete です。 代わりに IO#each_codepoint を使用してください。
...このメソッドは obsolete です。
代わりに IO#each_codepoint を使用してください。
使用すると警告メッセージが表示されます。
IO の各コードポイントに対して繰り返しブロックを呼びだします。
ブロックの引数にはコードポ......イントを表す整数が渡されます。
ブロックを省略した場合には、Enumerator を返します。
@see IO#each_codepoint... -
IO
# pread(maxlen , offset , outbuf = "") -> string (27324.0) -
preadシステムコールを使ってファイルポインタを変更せずに、また現在のファイルポインタに 依存せずにmaxlenバイト読み込みます。
...preadシステムコールを使ってファイルポインタを変更せずに、また現在のファイルポインタに
依存せずにmaxlenバイト読み込みます。
IO#seekとIO#readの組み合わせと比べて、アトミックな操作に
なるという点が優れていて、複......数スレッド/プロセスから同じIOオブジェクトを
様々な位置から読み込むことを許します。
どのユーザー空間のIO層のバッファリングもバイパスします。
@param maxlen 読み込むバイト数を指定します。
@param offset 読み込み開始......トを指定します。
@param outbuf データを受け取る String を指定します。
@raise Errno::EXXX シークまたは書き込みが失敗した場合に発生します。
@raise EOFError EOF に到達した時に発生します。
@raise NotImplementedError システムコールがサ... -
IO
# sysread(maxlen , outbuf = "") -> String (27324.0) -
read(2) を用いて入力を行ない、入力されたデータを 含む文字列を返します。stdio を経由しないので gets や getc や eof? などと混用すると思わぬ動作 をすることがあります。
...read(2) を用いて入力を行ない、入力されたデータを
含む文字列を返します。stdio を経由しないので gets や getc や eof? などと混用すると思わぬ動作
をすることがあります。
バイナリ読み込みメソッドとして動作します。
既......は、空文字列 "" を返します。
@param maxlen 入力のサイズを整数で指定します。
@param outbuf 出力用のバッファを文字列で指定します。IO#sysread は読み込んだデータを
その文字列オブジェクトに上書きして返します。......@raise IOError 自身が読み込み用にオープンされていなければ発生します。
@raise EOFError IO が既に EOF に達していれば発生します。
@raise Errno::EXXX データの読み込みに失敗した場合に発生します。
第二引数を指定した sysread の... -
IO
# each _ codepoint -> Enumerator (27322.0) -
IO の各コードポイントに対して繰り返しブロックを呼びだします。
...
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
# read(length = nil , outbuf = "") -> String | nil (27318.0) -
length バイト読み込んで、その文字列を返します。
...en(空ファイル) {|f| f.read } は "" となります。
@param length 読み込むサイズを整数で指定します。
nil が指定された場合、EOF までの全てのデータを読み込んで、その文字列を返します。
@param outbuf 出力用のバッファを......文字列で指定します。IO#read は読み込んだ
データをその文字列オブジェクトに上書きして返します。指定し
た文字列オブジェクトがあらかじめ length 長の領域であれば、
余計なメモリの割当......。
@raise IOError 自身が読み込み用にオープンされていなければ発生します。
@raise Errno::EXXX データの読み込みに失敗した場合に発生します。
@raise ArgumentError length が負の場合に発生します。
第二引数を指定した read の呼び... -
OpenSSL
:: OCSP :: REVOKED _ STATUS _ CESSATIONOFOPERATION -> Integer (24500.0) -
OpenSSL::OCSP::BasicResponse#status の失効理由コードで、 証明書の運用を止めたことを意味します。
...OpenSSL::OCSP::BasicResponse#status の失効理由コードで、
証明書の運用を止めたことを意味します。
詳しくは 3280 や X.509 を参照してください。...