種類
ライブラリ
- English (48)
- ビルトイン (589)
-
cgi
/ core (24) - csv (72)
-
drb
/ timeridconv (12) - erb (24)
- etc (12)
- expect (24)
- forwardable (24)
-
io
/ wait (36) -
irb
/ context (12) -
irb
/ output-method (96) - kconv (96)
-
minitest
/ unit (2) - mkmf (12)
- monitor (18)
-
net
/ ftp (48) -
net
/ http (184) -
net
/ imap (24) -
net
/ pop (60) -
net
/ protocol (31) -
net
/ smtp (72) - open3 (84)
- openssl (96)
- pp (24)
- prettyprint (60)
- rake (12)
- readline (12)
- resolv (12)
-
rexml
/ document (144) - rss (396)
-
rubygems
/ commands / outdated _ command (12) -
rubygems
/ package / tar _ output (84) -
rubygems
/ source _ index (12) -
rubygems
/ user _ interaction (60) - shell (39)
-
shell
/ command-processor (6) -
shell
/ filter (18) -
shell
/ process-controller (6) - socket (250)
- stringio (48)
- strscan (24)
- thread (4)
- timeout (69)
- tracer (48)
- uri (24)
-
webrick
/ cgi (12) -
webrick
/ httpstatus (48) -
webrick
/ log (12) - win32ole (48)
- zlib (84)
クラス
-
ARGF
. class (24) - Array (57)
- CGI (24)
-
CGI
:: Cookie (12) - CSV (60)
-
DRb
:: TimerIdConv (12) - ERB (24)
-
Encoding
:: Converter (12) - File (12)
-
Gem
:: Package :: TarOutput (72) -
Gem
:: SourceIndex (12) -
Gem
:: StreamUI (24) -
Gem
:: StreamUI :: SilentProgressReporter (12) -
Gem
:: StreamUI :: SimpleProgressReporter (12) -
Gem
:: StreamUI :: VerboseProgressReporter (12) - IO (296)
-
IRB
:: Context (12) -
IRB
:: OutputMethod (60) -
IRB
:: StdioOutputMethod (12) - Integer (48)
- MatchData (24)
-
MiniTest
:: Unit (2) - Monitor (6)
-
MonitorMixin
:: ConditionVariable (12) - Mutex (2)
-
Net
:: FTP (48) -
Net
:: HTTP (146) -
Net
:: IMAP (12) -
Net
:: IMAP :: Address (12) -
Net
:: POP3 (60) -
Net
:: SMTP (72) - Object (24)
-
OpenSSL
:: SSL :: SSLContext (48) -
OpenSSL
:: SSL :: Session (24) - PP (24)
- PrettyPrint (60)
-
RDoc
:: Options (24) -
REXML
:: AttlistDecl (12) -
REXML
:: Attribute (12) -
REXML
:: Declaration (12) -
REXML
:: DocType (12) -
REXML
:: Document (24) -
REXML
:: Element (12) -
REXML
:: Entity (12) -
REXML
:: ExternalEntity (12) -
REXML
:: Formatters :: Default (12) -
REXML
:: NotationDecl (12) -
RSS
:: ImageFaviconModel :: ImageFavicon (24) -
RSS
:: ImageItemModel :: ImageItem (24) -
RSS
:: Maker :: ChannelBase (24) -
RSS
:: RDF :: Channel (24) -
RSS
:: RDF :: Channel :: ImageFavicon (24) -
RSS
:: RDF :: Image (24) -
RSS
:: RDF :: Item (24) -
RSS
:: RDF :: Textinput (24) -
RSS
:: TaxonomyTopicModel :: TaxonomyTopic (24) -
RSS
:: TrackBackModel10 :: TrackBackAbout (48) -
RSS
:: TrackBackModel20 :: TrackBackAbout (48) -
Rake
:: Application (12) -
Resolv
:: DNS (12) - Shell (39)
-
Shell
:: CommandProcessor (6) -
Shell
:: Filter (18) -
Shell
:: ProcessController (6) - Socket (132)
- String (72)
- StringIO (48)
- StringScanner (24)
- TCPSocket (10)
-
Thread
:: ConditionVariable (12) -
Thread
:: Mutex (10) - Tracer (48)
-
URI
:: Generic (24) -
WEBrick
:: BasicLog (12) -
WEBrick
:: CGI (12) -
WIN32OLE
_ EVENT (12) -
WIN32OLE
_ PARAM (36) -
Zlib
:: GzipReader (12) -
Zlib
:: Inflate (12) -
Zlib
:: ZStream (48)
モジュール
- Etc (12)
-
GC
:: Profiler (12) - Kconv (48)
- Kernel (148)
- Open3 (84)
-
OpenSSL
:: X509 (12) -
RSS
:: BaseTrackBackModel (36) -
RSS
:: RootElementMixin (24) - Readline (12)
-
Socket
:: Constants (108) - Timeout (21)
-
WEBrick
:: HTTPStatus (24)
キーワード
-
$ CHILD _ STATUS (12) -
$ DEFAULT _ OUTPUT (12) -
$ OUTPUT _ FIELD _ SEPARATOR (12) -
$ OUTPUT _ RECORD _ SEPARATOR (12) -
$ stdout (12) - << (12)
- > (6)
- >> (6)
-
AF
_ ROUTE (24) - CSV (12)
- Cookie (12)
- ETIMEDOUT (12)
- Error (12)
- Forwardable (12)
- GatewayTimeout (12)
- HTTPGatewayTimeOut (12)
- HTTPGatewayTimeout (7)
- HTTPRequestTimeOut (12)
- HTTPRequestTimeout (7)
-
IFF
_ ROUTE (24) -
IPPROTO
_ ROUTING (24) -
IP
_ ROUTER _ ALERT (24) -
MSG
_ DONTROUTE (24) -
MSG
_ OOB (24) -
NEWS for Ruby 2
. 2 . 0 (11) - OpenTimeout (12)
- OutdatedCommand (12)
- Output (12)
- OutputMethod (12)
-
PF
_ ROUTE (24) - Queue (12)
-
RC
_ GATEWAY _ TIMEOUT (12) -
RC
_ REQUEST _ TIMEOUT (12) - ReadTimeout (12)
- RequestTimeout (12)
- Ruby用語集 (12)
-
SC
_ TIMEOUTS (12) -
SO
_ DONTROUTE (24) -
SO
_ OOBINLINE (24) - STDOUT (12)
- SingleForwardable (12)
- StdioOutputMethod (12)
- TarOutput (12)
- Timeout (12)
- TimeoutError (8)
- TrackBackAbout (24)
-
V
_ ERR _ OUT _ OF _ MEM (12) - WriteTimeout (7)
- X509 (12)
- ZStream (12)
- about (108)
- about= (108)
-
add
_ gem _ contents (12) -
add
_ signatures (12) -
avail
_ out (12) -
avail
_ out= (12) - begin (12)
-
block
_ output _ synchronize (6) - cgi (12)
-
cgi
/ session (12) - chmod (12)
- chr (24)
- close (12)
- content (12)
- content= (12)
-
continue
_ timeout (12) -
continue
_ timeout= (12) -
cpp
_ command (12) -
debug
_ output= (12) -
debug
_ output _ exclusive _ unlock (3) -
debug
_ output _ lock (6) -
debug
_ output _ locked? (6) -
debug
_ output _ synchronize (6) -
debug
_ output _ try _ lock (6) -
debug
_ output _ unlock (6) - digits (24)
- display (12)
- end (12)
- expect (24)
- fatal (12)
- fetch (36)
- filter (36)
-
flush
_ next _ out (12) -
force
_ output (12) -
force
_ output= (12) - format (12)
- header (12)
- input? (12)
-
insert
_ output (12) - instance (24)
-
irb
/ output-method (12) - kconv (24)
-
keep
_ alive _ timeout (12) -
keep
_ alive _ timeout= (12) - logout (12)
- new (137)
-
on
_ event _ with _ outargs (12) - open (17)
-
open
_ timeout (48) -
open
_ timeout= (48) - outdated (12)
- output (12)
- output= (13)
- output? (12)
-
output
_ encoding (12) -
output
_ encoding= (12) - outs (12)
- pack (21)
- pack テンプレート文字列 (12)
-
pipeline
_ r (12) -
pipeline
_ rw (12) -
pipeline
_ w (24) - pointer= (12)
- popen (168)
- popen2 (12)
- popen2e (12)
- popen3 (12)
- pos= (12)
- pp (24)
- ppx (12)
- pread (8)
- print (24)
- printn (12)
- puts (12)
-
rb
_ define _ class _ under (12) -
rb
_ define _ module _ under (12) -
rb
_ thread _ select (1) -
rdoc
/ generator / json _ index (12) -
rdoc
/ markdown (12) - read (24)
-
read
_ nonblock (36) -
read
_ timeout (48) -
read
_ timeout= (48) - readpartial (48)
- report (12)
- resource (12)
- resource= (12)
- retval? (12)
- route (12)
-
route
_ from (12) -
route
_ to (12) -
ruby 1
. 6 feature (12) -
rubygems
/ commands / outdated _ command (12) -
rubygems
/ package / tar _ output (12) -
rubygems
/ security (12) - select (24)
-
set
_ debug _ output (36) -
set
_ eoutvar (12) -
singleline
_ format (12) -
singleline
_ pp (12) - sleep (12)
- spawn (48)
-
ssl
_ timeout (24) -
ssl
_ timeout= (24) - start (12)
- status (1)
- stdout (24)
- stdout= (12)
-
stdout
_ mutex (12) - sysread (24)
- tcp (24)
- timeout (73)
- timeout= (24)
- timeouts= (12)
-
to
_ f (12) -
total
_ out (12) - toutf16 (24)
- toutf32 (24)
- toutf8 (24)
-
trackback
_ about (12) -
trackback
_ about= (12) -
trackback
_ abouts (12) -
tty
_ output= (12) - unpack (12)
- value (24)
- value= (24)
- wait (36)
-
wait
_ for _ cond (6) -
wait
_ readable (12) -
wait
_ writable (12) - write (132)
-
write
_ timeout (7) -
write
_ timeout= (7)
検索結果
先頭5件
-
Shell
# out(dev = STDOUT , &block) -> () (18213.0) -
Shell#transact を呼び出しその結果を dev に出力します。
...ェクトなどで指定します。
@param block transact 内部で実行するシェルを指定します。
使用例:
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
File.open("out.txt", "w"){ |fp|
sh.out(fp) {
system("ls", "-l") | head("-n 3")
}
}... -
Shell
:: CommandProcessor # out(dev = STDOUT , &block) -> () (18213.0) -
Shell#transact を呼び出しその結果を dev に出力します。
...ェクトなどで指定します。
@param block transact 内部で実行するシェルを指定します。
使用例:
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
File.open("out.txt", "w"){ |fp|
sh.out(fp) {
system("ls", "-l") | head("-n 3")
}
}... -
Shell
:: Filter # out(dev = STDOUT , &block) -> () (18213.0) -
Shell#transact を呼び出しその結果を dev に出力します。
...ェクトなどで指定します。
@param block transact 内部で実行するシェルを指定します。
使用例:
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
File.open("out.txt", "w"){ |fp|
sh.out(fp) {
system("ls", "-l") | head("-n 3")
}
}... -
CGI
# out(options = "text / html") { . . . . } (18119.0) -
HTTP ヘッダと、ブロックで与えられた文字列を標準出力に出力します。
...ew
cgi.out{ "string" }
# Content-Type: text/html
# Content-Length: 6
#
# string
cgi.out("text/plain"){ "string" }
# Content-Type: text/plain
# Content-Length: 6
#
# string
cgi.out({"nph"... -
Timeout
. # timeout(sec , exception _ class = nil) {|i| . . . } -> object (9100.0) -
ブロックを sec 秒の期限付きで実行します。 ブロックの実行時間が制限を過ぎたときは例外 Timeout::Error が発生します。
...秒の期限付きで実行します。
ブロックの実行時間が制限を過ぎたときは例外
Timeout::Error が発生します。
exception_class を指定した場合には Timeout::Error の代わりに
その例外が発生します。
ブロックパラメータ i は sec がはい......ト
require 'timeout'
def calc_pi(min)
loop do
x = rand
y = rand
x**2 + y**2 < 1.0 ? min[0] += 1 : min[1] += 1
end
end
t = 5
min = [ 0, 0]
begin
Timeout.timeout(t){
calc_pi(min)
}
rescue Timeout::Error
puts "timeout"
end
printf "%d:......タイムアウト
#!/usr/bin/env ruby
require 'timeout'
class MYError < Exception;end
begin
Timeout.timeout(5, MYError) {
sleep(30)
}
rescue MYError => err
puts "MYError"
puts err
end
=== 注意
timeout による割り込みは Thread によって実現され... -
Timeout
. # timeout(sec , exception _ class , message) {|i| . . . } -> object (9100.0) -
ブロックを sec 秒の期限付きで実行します。 ブロックの実行時間が制限を過ぎたときは例外 Timeout::Error が発生します。
...秒の期限付きで実行します。
ブロックの実行時間が制限を過ぎたときは例外
Timeout::Error が発生します。
exception_class を指定した場合には Timeout::Error の代わりに
その例外が発生します。
ブロックパラメータ i は sec がはい......ト
require 'timeout'
def calc_pi(min)
loop do
x = rand
y = rand
x**2 + y**2 < 1.0 ? min[0] += 1 : min[1] += 1
end
end
t = 5
min = [ 0, 0]
begin
Timeout.timeout(t){
calc_pi(min)
}
rescue Timeout::Error
puts "timeout"
end
printf "%d:......タイムアウト
#!/usr/bin/env ruby
require 'timeout'
class MYError < Exception;end
begin
Timeout.timeout(5, MYError) {
sleep(30)
}
rescue MYError => err
puts "MYError"
puts err
end
=== 注意
timeout による割り込みは Thread によって実現され... -
ERB
# set _ eoutvar(compiler , eoutvar = & # 39; _ erbout& # 39;) -> Array (6300.0) -
ERBの中でeRubyスクリプトの出力をためていく変数を設定します。
...用した方がより容易です。
本メソッドを使用するためには、引数にて指定する eRuby コンパイラを事前に生成しておく必要があります。
@param compiler eRubyコンパイラ
@param eoutvar eRubyスクリプトの中で出力をためていく変数... -
Rake
:: Application # tty _ output=(tty _ output _ state) (6200.0) -
TTY に対する出力状態を上書きします。
...@param tty_output_state 変更後の状態を指定します
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
Rake.application.tty_output? # => false
Rake.application.tty_output = "debug output" # => "debug output"
Rake.......application.tty_output? # => "debug output"
end
//}... -
Readline
. output=(output) (6200.0) -
readline メソッドで使用する出力用の File オブジェクト output を指定します。 戻り値は指定した File オブジェクト output です。
...readline メソッドで使用する出力用の File オブジェクト output を指定します。
戻り値は指定した File オブジェクト output です。
@param output File オブジェクトを指定します。... -
WIN32OLE
_ PARAM # output? -> bool (6118.0) -
パラメータがクライアントからの結果を受け取るためのものかを判定します。
...out(サーバがクライアントへ与える。
WIN32OLE_PARAM#output?が真)および、inout(クライアントからサーバ
へ与え、サーバがクライアントへ与える)の3種類の方向属性のいずれかを持ち
ます。
output?メソッドはout属性またはinout......ッドの方向属性がoutまたはinoutならば真を返します。
tobj = WIN32OLE_TYPE.new('Microsoft Internet Controls', 'DWebBrowserEvents')
method = WIN32OLE_METHOD.new(tobj, 'NewWindow')
method.params.each do |param|
puts "#{param.name} #{param.output?}"
end
The resul... -
Kernel
$ $ DEFAULT _ OUTPUT -> IO (6112.0) -
$> の別名
...$> の別名
require "English"
dout = $DEFAULT_OUTPUT.dup
$DEFAULT_OUTPUT.reopen("out.txt", "w")
print "foo"
$DEFAULT_OUTPUT.close
$DEFAULT_OUTPUT = dout
p "bar" # => bar
p File.read("out.txt") #=> foo...