別のキーワード
ライブラリ
- ビルトイン (1892)
-
bigdecimal
/ util (12) -
cgi
/ core (120) -
cgi
/ html (564) -
cgi
/ session (24) - continuation (24)
- csv (24)
- date (12)
- e2mmap (36)
- etc (12)
- expect (24)
- fiddle (12)
-
fiddle
/ import (48) - getoptlong (12)
-
io
/ console (36) -
io
/ nonblock (24) -
io
/ wait (48) -
irb
/ input-method (12) -
irb
/ output-method (12) - json (36)
-
json
/ add / exception (12) -
json
/ add / rational (12) - logger (5)
- matrix (48)
-
minitest
/ spec (1) -
minitest
/ unit (27) - mkmf (60)
- monitor (12)
-
net
/ ftp (48) -
net
/ http (60) -
net
/ imap (24) -
net
/ pop (108) -
net
/ smtp (24) -
net
/ telnet (2) - open-uri (36)
- openssl (744)
- optparse (588)
- prime (36)
- pstore (12)
- psych (84)
- rake (144)
-
rake
/ loaders / makefile (12) -
rake
/ packagetask (36) -
rake
/ rdoctask (12) -
rake
/ testtask (24) -
rdoc
/ code _ object (12) -
rdoc
/ context (36) -
rdoc
/ generator / darkfish (12) -
rdoc
/ generator / ri (12) -
rdoc
/ markdown (24) -
rdoc
/ parser / c (12) -
rdoc
/ top _ level (12) -
rexml
/ document (240) -
rexml
/ sax2listener (48) -
rexml
/ streamlistener (36) - rubygems (24)
-
rubygems
/ command (72) -
rubygems
/ commands / unpack _ command (12) -
rubygems
/ dependency (12) -
rubygems
/ dependency _ installer (24) -
rubygems
/ dependency _ list (24) -
rubygems
/ indexer (36) -
rubygems
/ installer (12) -
rubygems
/ package / tar _ input (24) -
rubygems
/ package / tar _ writer (84) -
rubygems
/ platform (12) -
rubygems
/ remote _ fetcher (36) -
rubygems
/ requirement (36) -
rubygems
/ source _ index (48) -
rubygems
/ source _ info _ cache (12) -
rubygems
/ spec _ fetcher (12) -
rubygems
/ specification (432) -
rubygems
/ user _ interaction (204) -
rubygems
/ version (24) -
rubygems
/ version _ option (24) - scanf (24)
- set (18)
- shell (84)
-
shell
/ command-processor (84) -
shell
/ filter (102) -
shell
/ process-controller (6) - socket (108)
- stringio (482)
- thread (2)
- time (24)
- timeout (8)
- uri (12)
-
webrick
/ cgi (12) -
webrick
/ httpresponse (48) -
webrick
/ https (12) -
webrick
/ httpserver (12) -
webrick
/ httpservlet / abstract (12) -
webrick
/ httpservlet / filehandler (12) -
webrick
/ httpservlet / prochandler (12) -
webrick
/ httpversion (60) - win32ole (12)
- zlib (228)
クラス
-
ARGF
. class (312) - Array (142)
- BasicSocket (48)
- CGI (24)
-
CGI
:: Session (24) - Complex (36)
- Continuation (24)
- Date (12)
-
Encoding
:: Converter (48) - Exception (68)
- Fiber (6)
-
Fiddle
:: Function (12) - File (12)
- Float (24)
-
Gem
:: Command (72) -
Gem
:: Commands :: UnpackCommand (12) -
Gem
:: Dependency (12) -
Gem
:: DependencyInstaller (24) -
Gem
:: DependencyList (24) -
Gem
:: Indexer (36) -
Gem
:: Installer (12) -
Gem
:: LoadError (12) -
Gem
:: Package :: TarInput (24) -
Gem
:: Package :: TarWriter (60) -
Gem
:: Package :: TarWriter :: BoundedStream (12) -
Gem
:: Package :: TarWriter :: RestrictedStream (12) -
Gem
:: Platform (12) -
Gem
:: RemoteFetcher (36) -
Gem
:: Requirement (36) -
Gem
:: SourceIndex (48) -
Gem
:: SourceInfoCache (12) -
Gem
:: SpecFetcher (12) -
Gem
:: Specification (432) -
Gem
:: StreamUI (84) -
Gem
:: Version (24) - GetoptLong (12)
- IO (826)
-
IRB
:: StdioInputMethod (12) -
IRB
:: StdioOutputMethod (12) - Integer (36)
-
JSON
:: State (24) -
Logger
:: Application (5) - Matrix (36)
-
Matrix
:: LUPDecomposition (12) -
MiniTest
:: Unit (3) - Module (61)
-
MonitorMixin
:: ConditionVariable (12) -
Net
:: FTP (48) -
Net
:: HTTP (36) -
Net
:: HTTPGenericRequest (24) -
Net
:: IMAP (12) -
Net
:: IMAP :: ContentDisposition (12) -
Net
:: POPMail (108) -
Net
:: SMTP (24) -
Net
:: Telnet (2) - NilClass (24)
- Numeric (12)
- Object (36)
-
OpenSSL
:: Config (48) -
OpenSSL
:: PKey :: EC :: Group (12) -
OpenSSL
:: SSL :: SSLContext (144) -
OpenSSL
:: SSL :: SSLSocket (48) -
OpenSSL
:: SSL :: Session (24) -
OpenSSL
:: X509 :: CRL (36) -
OpenSSL
:: X509 :: Certificate (36) -
OpenSSL
:: X509 :: Extension (36) -
OpenSSL
:: X509 :: ExtensionFactory (132) -
OpenSSL
:: X509 :: Request (12) -
OpenSSL
:: X509 :: Revoked (24) - OptionParser (516)
-
OptionParser
:: ParseError (48) - PStore (12)
- Prime (24)
-
Psych
:: Emitter (12) -
Psych
:: Handler (12) -
Psych
:: Nodes :: Document (12) -
Psych
:: Nodes :: Node (24) -
RDoc
:: CodeObject (12) -
RDoc
:: Context (12) -
RDoc
:: Context :: Section (24) -
RDoc
:: Generator :: Darkfish (12) -
RDoc
:: Generator :: RI (12) -
RDoc
:: Markdown (24) -
RDoc
:: Options (264) -
RDoc
:: Parser :: C (12) -
RDoc
:: TopLevel (12) -
REXML
:: AttlistDecl (12) -
REXML
:: Attribute (12) -
REXML
:: Child (12) -
REXML
:: Declaration (12) -
REXML
:: DocType (24) -
REXML
:: Document (24) -
REXML
:: Element (12) -
REXML
:: Entity (12) -
REXML
:: ExternalEntity (12) -
REXML
:: Formatters :: Default (12) -
REXML
:: Instruction (36) -
REXML
:: NotationDecl (36) -
REXML
:: XMLDecl (24) -
Rake
:: Application (24) -
Rake
:: FileList (36) -
Rake
:: InvocationChain (24) -
Rake
:: InvocationChain :: EmptyInvocationChain (12) -
Rake
:: MakefileLoader (12) -
Rake
:: PackageTask (36) -
Rake
:: RDocTask (12) -
Rake
:: Task (12) -
Rake
:: TestTask (24) - Rational (228)
- Set (24)
- Shell (84)
-
Shell
:: CommandProcessor (84) -
Shell
:: Filter (102) -
Shell
:: ProcessController (6) - Socket (24)
- String (180)
- StringIO (482)
- Thread (90)
-
Thread
:: ConditionVariable (12) - Time (24)
- UDPSocket (12)
- UNIXSocket (24)
-
URI
:: LDAP (12) -
WEBrick
:: CGI (12) -
WEBrick
:: Cookie (24) -
WEBrick
:: HTTPRequest (12) -
WEBrick
:: HTTPResponse (48) -
WEBrick
:: HTTPServer (12) -
WEBrick
:: HTTPServlet :: AbstractServlet (12) -
WEBrick
:: HTTPServlet :: FileHandler (12) -
WEBrick
:: HTTPServlet :: ProcHandler (12) -
WEBrick
:: HTTPVersion (60) -
WIN32OLE
_ PARAM (12) -
Zlib
:: Deflate (12) -
Zlib
:: GzipReader (132) -
Zlib
:: GzipWriter (72) -
Zlib
:: Inflate (12)
モジュール
-
CGI
:: HtmlExtension (564) -
CGI
:: QueryExtension (84) -
CGI
:: QueryExtension :: Value (12) - Exception2MessageMapper (36)
-
Fiddle
:: Importer (48) -
Gem
:: DefaultUserInteraction (24) -
Gem
:: UserInteraction (96) -
Gem
:: VersionOption (24) - Kernel (116)
-
MiniTest
:: Assertions (24) -
OpenSSL
:: Buffering (180) -
OpenSSL
:: SSL :: SocketForwarder (12) -
OpenURI
:: OpenRead (36) -
OptionParser
:: Arguable (24) -
REXML
:: SAX2Listener (48) -
REXML
:: StreamListener (36) -
Rake
:: TaskManager (12)
キーワード
- * (12)
- ** (12)
- + (12)
- - (24)
-
/ (12) - < (6)
- << (48)
- <=> (36)
- == (48)
- === (12)
- =~ (12)
- > (6)
- >> (6)
- Fail (6)
- JSON (12)
- Raise (6)
- [] (48)
- []= (12)
-
_ assertions= (1) - a (24)
- abbreviate (12)
-
abort
_ on _ exception (12) -
abort
_ on _ exception= (12) - accept (12)
-
add
_ bindir (12) -
add
_ class _ or _ module (24) -
add
_ dependency (12) -
add
_ development _ dependency (12) -
add
_ extension (36) -
add
_ file (24) -
add
_ file _ simple (24) -
add
_ loader (12) -
add
_ option (12) -
add
_ platform _ option (12) -
add
_ runtime _ dependency (12) -
add
_ spec (12) -
add
_ value (12) -
add
_ version _ option (12) - advise (12)
- alert (24)
-
alert
_ error (24) -
alert
_ warning (24) - all (36)
- append (42)
- application= (12)
- ask (24)
-
ask
_ yes _ no (24) - assert (1)
-
assert
_ block (1) -
assert
_ empty (1) -
assert
_ equal (1) -
assert
_ in _ delta (1) -
assert
_ in _ epsilon (1) -
assert
_ includes (1) -
assert
_ instance _ of (1) -
assert
_ kind _ of (1) -
assert
_ match (1) -
assert
_ nil (1) -
assert
_ operator (1) -
assert
_ raises (1) -
assert
_ respond _ to (1) -
assert
_ same (1) -
assert
_ send (1) -
assert
_ throws (1) -
assertion
_ count= (1) - atime (18)
- autoclose= (12)
-
backtrace
_ locations (24) - base (12)
- bind (18)
- bindir= (12)
- blockdev? (18)
- blockquote (24)
- body= (12)
-
body
_ stream (12) -
body
_ stream= (12) - call (24)
- capitalize (9)
- capitalize! (9)
- caption (24)
- ceil (12)
-
cert
_ chain= (12) - chardev? (18)
- checkbox (24)
-
checkbox
_ group (24) -
choose
_ from _ list (24) -
close
_ on _ exec= (12) - coerce (12)
- cofactor (12)
-
cofactor
_ expansion (12) - combination (24)
- compress (12)
- config= (12)
- configure (12)
-
connect
_ nonblock (12) -
connection
_ for (12) -
const
_ source _ location (12) - content= (12)
-
content
_ length (12) -
content
_ length= (12) - convert (12)
-
coverage
_ report= (12) -
create
_ ext (12) -
create
_ ext _ from _ array (12) -
create
_ ext _ from _ hash (12) -
create
_ ext _ from _ string (12) -
create
_ extension (24) - critical= (12)
- crl= (12)
- ctime (18)
- date= (12)
-
debug
_ output= (12) -
def
_ exception (6) -
default
_ argv (12) -
default
_ argv= (12) -
default
_ executable= (12) - desc (12)
- description= (12)
- directory? (18)
- display (12)
-
do
_ OPTIONS (24) - downcase (9)
- downcase! (9)
-
dry
_ run= (12) - each (180)
-
each
_ line (180) - echo= (12)
- egrep (12)
- email= (12)
- encode (36)
- encode! (24)
- encoding= (12)
- environment (12)
- exception (24)
-
exception
_ details (1) - exclude= (12)
-
excluded
_ from _ list? (12) - executable= (12)
- executables= (12)
- exist? (18)
- exists? (18)
- expect (24)
- extension (12)
- extension? (12)
- extensions= (60)
- extern (12)
-
extra
_ rdoc _ files= (12) - fail (6)
- fcntl (24)
- fdiv (12)
- file? (18)
-
file
_ field (24) - files= (12)
-
find
_ name (24) -
find
_ spec _ by _ name _ and _ version (12) - flock (12)
- floor (12)
- flunk (1)
-
flush
_ sessions (12) -
force
_ output= (12) - form (48)
- gem (12)
- generator= (12)
-
get
_ instance (12) -
get
_ path (12) -
get
_ value (12) - getopts (36)
- gets (108)
- getsockopt (12)
- grpowned? (18)
-
has
_ key? (12) - header (12)
- hidden (24)
- homepage= (12)
- html (24)
-
hyperlink
_ all= (12) - img (24)
- import (12)
- include? (12)
- indentation= (12)
-
infect
_ with _ assertions (1) - init (12)
- initialize (24)
- install (12)
-
installation
_ satisfies _ dependency? (12) - instruction (12)
-
int
_ from _ prime _ division (12) - intersection (18)
- ioctl (12)
- iso8601 (12)
-
issuer
_ certificate= (12) - key? (12)
-
laplace
_ expansion (12) - level= (1)
- line (12)
-
line
_ numbers= (12) - lineno= (36)
- lines (56)
- load (24)
-
load
_ gemspec (12) - loaded= (12)
-
loaded
_ from= (12) - log (2)
- log= (1)
- mail (36)
-
main
_ page= (12) - major (12)
- major= (12)
- markup= (12)
-
marshal
_ load (12) - member? (12)
- merge (12)
- minor (12)
- minor= (12)
- mkdir (12)
-
module
_ function (36) - mount (12)
- mtime (18)
-
mu
_ pp (1) -
multipart
_ form (48) - name= (12)
- nonblock (12)
- nonblock= (12)
- notation (12)
- notationdecl (24)
- oid= (12)
- on (144)
-
on
_ head (12) -
on
_ tail (12) -
op
_ dir= (12) - open (24)
-
open
_ uri _ or _ path (12) -
option
_ parser= (12) - optional? (12)
- order (48)
- order! (24)
-
original
_ platform= (12) - out (30)
- owned? (18)
- pack (21)
-
package
_ files= (12) -
page
_ dir= (12) - params (12)
- params= (12)
- paranoid (12)
- parse (48)
- parse! (12)
-
parse
_ csv (12) - partition (12)
- pass (1)
-
password
_ field (24) - pathconf (12)
- permutation (24)
- permute (24)
- permute! (12)
- pipe= (12)
- pipe? (18)
- platform= (12)
-
point
_ conversion _ form= (12) - pop (36)
- pos= (36)
-
post
_ connection _ check (12) - pread (8)
- preprocess (2)
-
previous
_ sibling= (12) -
prime
_ division (24) -
primitive
_ convert (48) - print (72)
- printf (48)
- priority (12)
- priority= (12)
-
processing
_ instruction (12) -
program
_ name= (12) - progress (12)
- progress= (12)
-
psych
_ to _ yaml (12) - public= (12)
- puke (1)
- putc (36)
- puts (48)
- pwrite (8)
- quo (24)
-
radio
_ group (24) - raise (6)
-
rake
_ extension (12) - rationalize (108)
- raw (12)
- read (96)
-
read
_ nonblock (48) - readline (72)
- readlines (108)
- readpartial (84)
- reason= (12)
- recover (12)
-
recv
_ io (12) -
recvfrom
_ nonblock (24) - recvmsg (12)
- reject (12)
- release= (12)
-
remove
_ by _ name (12) -
remove
_ option (12) -
renegotiation
_ cb= (12) - reopen (60)
-
repeated
_ combination (24) -
repeated
_ permutation (24) -
report
_ on _ exception (9) -
report
_ on _ exception= (9) -
request
_ http _ version= (12) -
require
_ path= (12) -
require
_ paths= (12) -
required
_ ruby _ version= (12) -
required
_ rubygems _ version= (12) - requirements= (12)
- reset (36)
- root= (12)
- round (12)
- rpartition (12)
-
ruby
_ opts= (12) -
rubygems
_ version= (12) -
satisfied
_ by? (12) -
satisfies
_ requirement? (12) - say (12)
- scanf (24)
-
scrolling
_ list (24) - search (24)
- section (12)
- section= (12)
- seek (36)
-
send
_ io (12) - sendmsg (12)
- separator (12)
- session= (12)
-
session
_ add (12) -
session
_ cache _ mode= (12) -
session
_ cache _ size= (12) -
session
_ get _ cb= (12) -
session
_ id _ context= (12) -
session
_ new _ cb= (12) -
session
_ remove (12) -
session
_ remove _ cb= (12) -
set
_ backtrace (24) -
set
_ comment (12) -
set
_ debug _ output (24) -
set
_ dictionary (24) -
set
_ encoding (108) -
set
_ log (1) -
set
_ option (12) -
set
_ params (12) - setsockopt (12)
- sfork (6)
-
show
_ all= (12) -
show
_ lookup _ failure (12) -
signing
_ key= (12) - skip (1)
- solve (12)
- specification (12)
-
specification
_ version= (12) -
ssl
_ version= (24) - start (12)
-
start
_ document (12) - starttls (12)
-
static
_ path= (12) - status (1)
- storbinary (24)
- storlines (24)
- string= (12)
-
subject
_ certificate= (12) -
subject
_ request= (12) - submit (24)
- summarize (24)
- summary= (24)
-
summary
_ indent= (12) -
summary
_ width= (12) - swapcase (9)
- swapcase! (9)
- sync= (24)
-
synthesize
_ file _ task (12) - sysread (60)
- sysseek (12)
- system= (12)
- syswrite (36)
- target= (12)
-
template
_ dir= (12) -
terminate
_ interaction (24) -
test
_ files= (12) -
test
_ suite _ file= (12) -
text
_ field (24) - textarea (24)
- time= (12)
- timeout (8)
- timeout= (12)
- title= (12)
-
to
_ a (36) -
to
_ csv (12) -
to
_ d (12) -
to
_ i (12) -
to
_ json (24) -
to
_ r (12) -
to
_ yaml (24) - transaction (12)
- truncate (24)
-
try
_ link (24) -
tty
_ output= (12) - ui= (12)
- ungetbyte (24)
- ungetc (48)
- union (31)
- unpack (12)
- upcase (9)
- upcase! (9)
-
use
_ ui (12) - value (12)
- value= (12)
- verbosity= (12)
- version (12)
- version= (120)
-
version
_ requirement= (12) -
version
_ requirements= (12) - visibility= (12)
- wait (36)
-
wait
_ readable (12) -
wait
_ writable (24) -
warn
_ legacy (12) - winsize= (12)
- write (216)
-
write
_ nonblock (36) - xmldecl (36)
- xmlschema (12)
- xpopen (24)
- yaml (12)
-
zipped
_ stream (12)
検索結果
先頭5件
-
IO
# ioctl(cmd , arg = 0) -> Integer (27135.0) -
IO に対してシステムコール ioctl を実行し、その結果を返します。 機能の詳細は ioctl(2) を参照してください。
...
IO に対してシステムコール ioctl を実行し、その結果を返します。
機能の詳細は ioctl(2) を参照してください。
@param cmd IO に対するコマンドを整数で指定します。どのようなコマンドが使えるかはプラットフォームに依存し......ます。
@param arg cmd に対する引数を指定します。整数の時にはその値を ioctl に渡します。
文字列の場合には Array#pack した構造体だとみなして渡します。
arg が nil か false の場合には 0を、true の場合には 1 を......渡します。
@raise IOError 既に close されている場合に発生します。... -
IO
# sysseek(offset , whence = IO :: SEEK _ SET) -> Integer (21222.0) -
lseek(2) と同じです。IO#seek では、 IO#sysread, IO#syswrite と併用すると正しく動作しないので代わりにこのメソッドを使います。 位置 offset への移動が成功すれば移動した位置(ファイル先頭からのオフセット)を返します。
...lseek(2) と同じです。IO#seek では、
IO#sysread, IO#syswrite と併用すると正しく動作しないので代わりにこのメソッドを使います。
位置 offset への移動が成功すれば移動した位置(ファイル先頭からのオフセット)を返します。
書き......込み用にバッファリングされた IO に対して実行すると警告が出ます。
File.open("/dev/zero") {|f|
buf = f.read(3)
f.sysseek(0)
}
# => -:3:in `sysseek': sysseek for buffered IO (IOError)
File.open("/dev/null", "w") {|f|
f.print "foo"
f.sysseek(0)......ered IO
@param offset ファイルポインタを移動させるオフセットを整数で指定します。
@param whence 値は以下のいずれかです。
それぞれ代わりに :SET、:CUR、:END、:DATA、:HOLE を指定す
る事も可能です。
* IO::SE... -
IO
# reopen(io) -> self (21171.0) -
自身を指定された io に繋ぎ換えます。
...た io に繋ぎ換えます。
クラスも io に等しくなることに注意してください。
IO#pos, IO#lineno などは指定された io と等しくなります。
@param io 自身を繋ぎ換えたい IO オブジェクトを指定します。
@raise IOError 指定された io が c... -
IO
# read _ nonblock(maxlen , outbuf = nil , exception: true) -> String | Symbol | nil (21159.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
# seek(offset , whence = IO :: SEEK _ SET) -> 0 (21156.0) -
ファイルポインタを whence の位置から offset だけ移動させます。 offset 位置への移動が成功すれば 0 を返します。
...。
@param offset ファイルポインタを移動させるオフセットを整数で指定します。
@param whence 値は以下のいずれかです。
それぞれ代わりに :SET、:CUR、:END、:DATA、:HOLE を指定す
る事も可能です。
* IO::SEEK_S......先頭から (デフォルト)
* IO::SEEK_CUR: 現在のファイルポインタから
* IO::SEEK_END: ファイルの末尾から
* IO::SEEK_DATA: offset 以降の次にデータがある位置へ(lseek の man ページ参照。Linux 3.1 以降のみ)
* IO::SEEK_HOLE: offset 以降の次......no::EXXX ファイルポインタの移動に失敗した場合に発生します。
@raise IOError 既に close されていた場合に発生します。
f = File.new("testfile")
f.seek(-13, IO::SEEK_END) #=> 0
f.readline #=> "And so on...\n"
@see IO#sysseek... -
IO
# write _ nonblock(string , exception: true) -> Integer | :wait _ writable (21141.0) -
IO をノンブロッキングモードに設定し、string を write(2) システムコールで書き出します。
...
IO をノンブロッキングモードに設定し、string を write(2) システムコールで書き出します。
write(2) が成功した場合、書き込んだ長さを返します。
EAGAIN, EINTR などは例外 Errno::EXXX として呼出元に報告されます。
書き込んだバ......ブジェクトに IO::WaitWritable が Object#extend
されます。よって IO::WaitWritable を write_nonblock のリトライが必要
かの判定に用いることができます。
@param string 自身に書き込みたい文字列を指定します。
@param exception false を指定す......と、書き込み時に Errno::EAGAIN、Errno::EWOULDBLOCK が発生
する代わりに :wait_writable を返します。
@raise IOError 自身が書き込み用にオープンされていなければ発生します。
@raise Errno::EXXX write(2) が失敗した場合に発生し... -
IO
# raw(min: 1 , time: 0 , intr: false) {|io| . . . } -> object (21126.0) -
raw モード、行編集を無効にして指定されたブロックを評価します。
...ロックを評価した結果を返します。
@param min 入力操作 (read) 時に受信したい最小のバイト数を指定します。min 値以上のバイト数を受信するまで、操作がブロッキングされます。
@param time タイムアウトするまでの秒数を指定......作がブロッキングされます。
@param intr trueを指定した場合は、割り込み (interrupt) 、中止 (quit) 、停止 (suspend) の各シグナルを生成する制御文字が有効になります。端末の制御については、 termios のマニュアル:https://pubs.opengr......oup.org/onlinepubs/9699919799/basedefs/termios.h.html を参照してください。
@raise LocalJumpError ブロックを指定しなかった場合に発生します。
@raise ArgumentError intr に true または false 以外の値を指定した場合に発生します。
以下の例では... -
Net
:: IMAP :: ContentDisposition # param -> { String => String } | nil (21102.0) -
Content-Disposition フィールドのパラメータをハッシュテーブルで 返します。
...Content-Disposition フィールドのパラメータをハッシュテーブルで
返します。
ハッシュテーブルのキーは以下のような値を取ります。詳しくは
2183 などを見てください。
* "FILENAME"
* "CREATION-DATE"
* "MODIFICATION-DATE"
* "READ-DAT"... -
IO
# readpartial(maxlen , outbuf = "") -> String (21071.0) -
IO から長さ maxlen を上限として読み込み、文字列として返します。 即座に得られるデータが存在しないときにはブロックしてデータの到着を待ちます。 即座に得られるデータが 1byte でも存在すればブロックしません。
...
IO から長さ maxlen を上限として読み込み、文字列として返します。
即座に得られるデータが存在しないときにはブロックしてデータの到着を待ちます。
即座に得られるデータが 1byte でも存在すればブロックしません。
バ......動作するよう設計されています。
readpartial がブロックするのは次の全ての条件が満たされたときだけです。
* IO オブジェクト内のバッファが空
* ストリームにデータが到着していない
* ストリームが EOF になっていない......EOF になっていれば、例外 EOFError を発生させます。
例えば、パイプに対しては次のように動作します。
r, w = IO.pipe # buffer pipe content
w << "abc" # "" "abc".
r.readpartial(4096)...