種類
ライブラリ
- English (44)
- ビルトイン (539)
-
cgi
/ core (22) - csv (66)
-
drb
/ timeridconv (11) - erb (22)
- etc (11)
- expect (22)
- forwardable (22)
-
io
/ wait (33) -
irb
/ context (11) -
irb
/ output-method (88) - kconv (88)
-
minitest
/ unit (2) - mkmf (11)
- monitor (16)
-
net
/ ftp (44) -
net
/ http (167) -
net
/ imap (22) -
net
/ pop (55) -
net
/ protocol (28) -
net
/ smtp (66) - open3 (77)
- openssl (88)
- pp (22)
- prettyprint (55)
- rake (11)
- readline (11)
- resolv (11)
-
rexml
/ document (132) - rss (363)
-
rubygems
/ commands / outdated _ command (11) -
rubygems
/ package / tar _ output (77) -
rubygems
/ source _ index (11) -
rubygems
/ user _ interaction (55) - shell (39)
-
shell
/ command-processor (6) -
shell
/ filter (18) -
shell
/ process-controller (6) - socket (228)
- stringio (44)
- strscan (22)
- thread (4)
- timeout (65)
- tracer (44)
- uri (22)
-
webrick
/ cgi (11) -
webrick
/ httpstatus (44) -
webrick
/ log (11) - win32ole (44)
- zlib (77)
クラス
-
ARGF
. class (22) - Array (52)
- CGI (22)
-
CGI
:: Cookie (11) - CSV (55)
-
DRb
:: TimerIdConv (11) - ERB (22)
-
Encoding
:: Converter (11) - File (11)
-
Gem
:: Package :: TarOutput (66) -
Gem
:: SourceIndex (11) -
Gem
:: StreamUI (22) -
Gem
:: StreamUI :: SilentProgressReporter (11) -
Gem
:: StreamUI :: SimpleProgressReporter (11) -
Gem
:: StreamUI :: VerboseProgressReporter (11) - IO (271)
-
IRB
:: Context (11) -
IRB
:: OutputMethod (55) -
IRB
:: StdioOutputMethod (11) - Integer (44)
- MatchData (22)
-
MiniTest
:: Unit (2) - Monitor (5)
-
MonitorMixin
:: ConditionVariable (11) - Mutex (2)
-
Net
:: FTP (44) -
Net
:: HTTP (133) -
Net
:: IMAP (11) -
Net
:: IMAP :: Address (11) -
Net
:: POP3 (55) -
Net
:: SMTP (66) - Object (22)
-
OpenSSL
:: SSL :: SSLContext (44) -
OpenSSL
:: SSL :: Session (22) - PP (22)
- PrettyPrint (55)
-
RDoc
:: Options (22) -
REXML
:: AttlistDecl (11) -
REXML
:: Attribute (11) -
REXML
:: Declaration (11) -
REXML
:: DocType (11) -
REXML
:: Document (22) -
REXML
:: Element (11) -
REXML
:: Entity (11) -
REXML
:: ExternalEntity (11) -
REXML
:: Formatters :: Default (11) -
REXML
:: NotationDecl (11) -
RSS
:: ImageFaviconModel :: ImageFavicon (22) -
RSS
:: ImageItemModel :: ImageItem (22) -
RSS
:: Maker :: ChannelBase (22) -
RSS
:: RDF :: Channel (22) -
RSS
:: RDF :: Channel :: ImageFavicon (22) -
RSS
:: RDF :: Image (22) -
RSS
:: RDF :: Item (22) -
RSS
:: RDF :: Textinput (22) -
RSS
:: TaxonomyTopicModel :: TaxonomyTopic (22) -
RSS
:: TrackBackModel10 :: TrackBackAbout (44) -
RSS
:: TrackBackModel20 :: TrackBackAbout (44) -
Rake
:: Application (11) -
Resolv
:: DNS (11) - Shell (39)
-
Shell
:: CommandProcessor (6) -
Shell
:: Filter (18) -
Shell
:: ProcessController (6) - Socket (121)
- String (66)
- StringIO (44)
- StringScanner (22)
- TCPSocket (8)
-
Thread
:: ConditionVariable (11) -
Thread
:: Mutex (9) - Tracer (44)
-
URI
:: Generic (22) -
WEBrick
:: BasicLog (11) -
WEBrick
:: CGI (11) -
WIN32OLE
_ EVENT (11) -
WIN32OLE
_ PARAM (33) -
Zlib
:: GzipReader (11) -
Zlib
:: Inflate (11) -
Zlib
:: ZStream (44)
モジュール
- Etc (11)
-
GC
:: Profiler (11) - Kconv (44)
- Kernel (137)
- Open3 (77)
-
OpenSSL
:: X509 (11) -
RSS
:: BaseTrackBackModel (33) -
RSS
:: RootElementMixin (22) - Readline (11)
-
Socket
:: Constants (99) - Timeout (19)
-
WEBrick
:: HTTPStatus (22)
キーワード
-
$ CHILD _ STATUS (11) -
$ DEFAULT _ OUTPUT (11) -
$ OUTPUT _ FIELD _ SEPARATOR (11) -
$ OUTPUT _ RECORD _ SEPARATOR (11) -
$ stdout (11) - << (11)
- > (6)
- >> (6)
-
AF
_ ROUTE (22) - CSV (11)
- Cookie (11)
- ETIMEDOUT (11)
- Error (11)
- Forwardable (11)
- GatewayTimeout (11)
- HTTPGatewayTimeOut (11)
- HTTPGatewayTimeout (6)
- HTTPRequestTimeOut (11)
- HTTPRequestTimeout (6)
-
IFF
_ ROUTE (22) -
IPPROTO
_ ROUTING (22) -
IP
_ ROUTER _ ALERT (22) -
MSG
_ DONTROUTE (22) -
MSG
_ OOB (22) -
NEWS for Ruby 2
. 2 . 0 (10) - OpenTimeout (11)
- OutdatedCommand (11)
- Output (11)
- OutputMethod (11)
-
PF
_ ROUTE (22) - Queue (11)
-
RC
_ GATEWAY _ TIMEOUT (11) -
RC
_ REQUEST _ TIMEOUT (11) - ReadTimeout (11)
- RequestTimeout (11)
- Ruby用語集 (11)
-
SC
_ TIMEOUTS (11) -
SO
_ DONTROUTE (22) -
SO
_ OOBINLINE (22) - STDOUT (11)
- SingleForwardable (11)
- StdioOutputMethod (11)
- TarOutput (11)
- Timeout (11)
- TimeoutError (8)
- TrackBackAbout (22)
-
V
_ ERR _ OUT _ OF _ MEM (11) - WriteTimeout (6)
- X509 (11)
- ZStream (11)
- about (99)
- about= (99)
-
add
_ gem _ contents (11) -
add
_ signatures (11) -
avail
_ out (11) -
avail
_ out= (11) - begin (11)
-
block
_ output _ synchronize (6) - cgi (11)
-
cgi
/ session (11) - chmod (11)
- chr (22)
- close (11)
- content (11)
- content= (11)
-
continue
_ timeout (11) -
continue
_ timeout= (11) -
cpp
_ command (11) -
debug
_ output= (11) -
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 (22)
- display (11)
- end (11)
- expect (22)
- fatal (11)
- fetch (33)
- filter (33)
-
flush
_ next _ out (11) -
force
_ output (11) -
force
_ output= (11) - format (11)
- header (11)
- input? (11)
-
insert
_ output (11) - instance (22)
-
irb
/ output-method (11) - kconv (22)
-
keep
_ alive _ timeout (11) -
keep
_ alive _ timeout= (11) - logout (11)
- new (125)
-
on
_ event _ with _ outargs (11) - open (15)
-
open
_ timeout (44) -
open
_ timeout= (44) - outdated (11)
- output (11)
- output= (12)
- output? (11)
-
output
_ encoding (11) -
output
_ encoding= (11) - outs (11)
- pack (19)
- pack テンプレート文字列 (11)
-
pipeline
_ r (11) -
pipeline
_ rw (11) -
pipeline
_ w (22) - pointer= (11)
- popen (154)
- popen2 (11)
- popen2e (11)
- popen3 (11)
- pos= (11)
- pp (22)
- ppx (11)
- pread (7)
- print (22)
- printn (11)
- puts (11)
-
rb
_ define _ class _ under (11) -
rb
_ define _ module _ under (11) -
rb
_ thread _ select (1) -
rdoc
/ generator / json _ index (11) -
rdoc
/ markdown (11) - read (22)
-
read
_ nonblock (33) -
read
_ timeout (44) -
read
_ timeout= (44) - readpartial (44)
- report (11)
- resource (11)
- resource= (11)
- retval? (11)
- route (11)
-
route
_ from (11) -
route
_ to (11) -
ruby 1
. 6 feature (11) -
rubygems
/ commands / outdated _ command (11) -
rubygems
/ package / tar _ output (11) -
rubygems
/ security (11) - select (22)
-
set
_ debug _ output (33) -
set
_ eoutvar (11) -
singleline
_ format (11) -
singleline
_ pp (11) - sleep (11)
- spawn (44)
-
ssl
_ timeout (22) -
ssl
_ timeout= (22) - start (11)
- status (1)
- stdout (22)
- stdout= (11)
-
stdout
_ mutex (11) - sysread (22)
- tcp (22)
- timeout (68)
- timeout= (22)
- timeouts= (11)
-
to
_ f (11) -
total
_ out (11) - toutf16 (22)
- toutf32 (22)
- toutf8 (22)
-
trackback
_ about (11) -
trackback
_ about= (11) -
trackback
_ abouts (11) -
tty
_ output= (11) - unpack (11)
- value (22)
- value= (22)
- wait (33)
-
wait
_ for _ cond (5) -
wait
_ readable (11) -
wait
_ writable (11) - write (121)
-
write
_ timeout (6) -
write
_ timeout= (6)
検索結果
先頭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...