種類
ライブラリ
- ビルトイン (555)
-
cgi
/ core (24) - csv (60)
-
drb
/ timeridconv (12) - erb (24)
- expect (24)
-
io
/ wait (36) -
irb
/ context (12) -
irb
/ output-method (72) - kconv (96)
-
minitest
/ unit (2) - mkmf (12)
- monitor (18)
-
net
/ ftp (48) -
net
/ http (146) -
net
/ pop (60) -
net
/ smtp (72) - open3 (84)
- openssl (72)
- pp (24)
- prettyprint (48)
- rake (12)
- readline (12)
- resolv (12)
-
rexml
/ document (132) - rss (372)
-
rubygems
/ package / tar _ output (36) -
rubygems
/ user _ interaction (48) - shell (39)
-
shell
/ command-processor (6) -
shell
/ filter (18) -
shell
/ process-controller (6) - socket (226)
- stringio (48)
- strscan (24)
- thread (2)
- timeout (37)
- tracer (36)
- uri (24)
-
webrick
/ cgi (12) -
webrick
/ log (12) - win32ole (48)
- zlib (24)
クラス
-
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 (36) -
Gem
:: StreamUI (12) -
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
:: POP3 (60) -
Net
:: SMTP (72) - Object (12)
-
OpenSSL
:: SSL :: SSLContext (48) -
OpenSSL
:: SSL :: Session (24) - PP (24)
- PrettyPrint (48)
-
RDoc
:: Options (12) -
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 (120)
- String (72)
- StringIO (48)
- StringScanner (24)
- TCPSocket (10)
-
Thread
:: ConditionVariable (12) -
Thread
:: Mutex (10) - Tracer (36)
-
URI
:: Generic (24) -
WEBrick
:: BasicLog (12) -
WEBrick
:: CGI (12) -
WIN32OLE
_ EVENT (12) -
WIN32OLE
_ PARAM (36) -
Zlib
:: GzipReader (12) -
Zlib
:: ZStream (12)
モジュール
-
GC
:: Profiler (12) - Kconv (48)
- Kernel (100)
- Open3 (84)
-
RSS
:: BaseTrackBackModel (36) -
RSS
:: RootElementMixin (24) - Readline (12)
-
Socket
:: Constants (96) - Timeout (21)
キーワード
-
$ stdout (12) - > (6)
- >> (6)
-
AF
_ ROUTE (24) - Cookie (12)
-
IPPROTO
_ ROUTING (24) -
IP
_ ROUTER _ ALERT (24) -
MSG
_ DONTROUTE (24) -
MSG
_ OOB (24) -
PF
_ ROUTE (24) - Ruby用語集 (12)
-
SO
_ DONTROUTE (24) -
SO
_ OOBINLINE (24) - about (108)
- about= (108)
-
add
_ signatures (12) -
avail
_ out= (12) - begin (12)
-
block
_ output _ synchronize (6) -
cgi
/ session (12) - chmod (12)
- chr (24)
- 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)
-
force
_ output= (12) - format (12)
- header (12)
- input? (12)
-
insert
_ output (12) - instance (24)
- kconv (24)
-
keep
_ alive _ timeout (12) -
keep
_ alive _ timeout= (12) - new (137)
-
on
_ event _ with _ outargs (12) - open (17)
-
open
_ timeout (48) -
open
_ timeout= (48) - output= (13)
- output? (12)
-
output
_ encoding (12) -
output
_ encoding= (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) -
rdoc
/ generator / json _ index (12) - read (24)
-
read
_ nonblock (36) -
read
_ timeout (48) -
read
_ timeout= (48) - readpartial (48)
- report (12)
- resource (12)
- resource= (12)
- retval? (12)
-
route
_ from (12) -
route
_ to (12) -
ruby 1
. 6 feature (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 (12)
- stdout= (12)
-
stdout
_ mutex (12) - sysread (24)
- tcp (24)
- timeout (61)
- timeout= (24)
- timeouts= (12)
-
to
_ f (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) -> () (18225.0) -
Shell#transact を呼び出しその結果を dev に出力します。
...します。
@param dev 出力先をIO オブジェクトなどで指定します。
@param block transact 内部で実行するシェルを指定します。
使用例:
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
File.open("out.txt", "w"){ |fp|
sh.out(fp) {... -
Shell
:: CommandProcessor # out(dev = STDOUT , &block) -> () (18225.0) -
Shell#transact を呼び出しその結果を dev に出力します。
...します。
@param dev 出力先をIO オブジェクトなどで指定します。
@param block transact 内部で実行するシェルを指定します。
使用例:
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
File.open("out.txt", "w"){ |fp|
sh.out(fp) {... -
Shell
:: Filter # out(dev = STDOUT , &block) -> () (18225.0) -
Shell#transact を呼び出しその結果を dev に出力します。
...します。
@param dev 出力先をIO オブジェクトなどで指定します。
@param block transact 内部で実行するシェルを指定します。
使用例:
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
File.open("out.txt", "w"){ |fp|
sh.out(fp) {... -
CGI
# out(options = "text / html") { . . . . } (18131.0) -
HTTP ヘッダと、ブロックで与えられた文字列を標準出力に出力します。
...します。
@param options Hash か文字列で HTTP ヘッダを生成するための情報を指定します。
例:
cgi = CGI.new
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" => true,
"status" => "OK", # == "200 OK"
"server" => ENV['SERVER_SOFTWARE'],
"connection" => "clo......tml; charset=iso-2022-jp
"language" => "ja",
"expires" => Time.now + (3600 * 24 * 30),
"cookie" => [cookie1, cookie2],
"my_header1" => "my_value",
"my_header2" => "my_value"}){ "string" }
@see CGI#header... -
Timeout
. # timeout(sec , exception _ class = nil) {|i| . . . } -> object (9118.0) -
ブロックを sec 秒の期限付きで実行します。 ブロックの実行時間が制限を過ぎたときは例外 Timeout::Error が発生します。
...秒の期限付きで実行します。
ブロックの実行時間が制限を過ぎたときは例外
Timeout::Error が発生します。
exception_class を指定した場合には Timeout::Error の代わりに
その例外が発生します。
ブロックパラメータ i は sec がはい......のときは制限時間なしで
ブロックを実行します。
@param sec タイムアウトする時間を秒数で指定します.
@param exception_class タイムアウトした時、発生させる例外を指定します.
@param message エラーメッセージを指定します.省略し......ト
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:... -
Timeout
. # timeout(sec , exception _ class , message) {|i| . . . } -> object (9118.0) -
ブロックを sec 秒の期限付きで実行します。 ブロックの実行時間が制限を過ぎたときは例外 Timeout::Error が発生します。
...秒の期限付きで実行します。
ブロックの実行時間が制限を過ぎたときは例外
Timeout::Error が発生します。
exception_class を指定した場合には Timeout::Error の代わりに
その例外が発生します。
ブロックパラメータ i は sec がはい......のときは制限時間なしで
ブロックを実行します。
@param sec タイムアウトする時間を秒数で指定します.
@param exception_class タイムアウトした時、発生させる例外を指定します.
@param message エラーメッセージを指定します.省略し......ト
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:... -
Timeout
. # timeout(sec , exception _ class = nil) {|i| . . . } -> object (9112.0) -
ブロックを sec 秒の期限付きで実行します。 ブロックの実行時間が制限を過ぎたときは例外 Timeout::Error が発生します。
...秒の期限付きで実行します。
ブロックの実行時間が制限を過ぎたときは例外
Timeout::Error が発生します。
exception_class を指定した場合には Timeout::Error の代わりに
その例外が発生します。
ブロックパラメータ i は sec がはい......で
ブロックを実行します。
@param sec タイムアウトする時間を秒数で指定します.
@param exception_class タイムアウトした時、発生させる例外を指定します.
例 長い計算のタイムアウト
require 'timeout'
def calc_pi(min)
loop do......imeout.timeout(t){
calc_pi(min)
}
rescue Timeout::Error
puts "timeout"
end
printf "%d: pi = %f\n", min[0] + min[1], min[0]*4.0/(min[0]+min[1])
#例
#=> 417519: pi = 3.141443
例 独自の例外を発生させるタイムアウト
#!/usr/bin/env ruby
require 'timeout'... -
ERB
# set _ eoutvar(compiler , eoutvar = & # 39; _ erbout& # 39;) -> Array (6312.0) -
ERBの中でeRubyスクリプトの出力をためていく変数を設定します。
...用した方がより容易です。
本メソッドを使用するためには、引数にて指定する eRuby コンパイラを事前に生成しておく必要があります。
@param compiler eRubyコンパイラ
@param eoutvar eRubyスクリプトの中で出力をためていく変数... -
Rake
:: Application # tty _ output=(tty _ output _ state) (6206.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) (6206.0) -
readline メソッドで使用する出力用の File オブジェクト output を指定します。 戻り値は指定した File オブジェクト output です。
...readline メソッドで使用する出力用の File オブジェクト output を指定します。
戻り値は指定した File オブジェクト output です。
@param output File オブジェクトを指定します。... -
WIN32OLE
_ PARAM # output? -> bool (6130.0) -
パラメータがクライアントからの結果を受け取るためのものかを判定します。
...out(サーバがクライアントへ与える。
WIN32OLE_PARAM#output?が真)および、inout(クライアントからサーバ
へ与え、サーバがクライアントへ与える)の3種類の方向属性のいずれかを持ち
ます。
output?メソッドはout属性またはinout......す。
@return メソッドの方向属性が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 result of above script is following:
URL false
Flags false
TargetFrameName false
PostData false
Headers false
Processed true
@see http://msdn.microsoft.com/en-us/library/aa367136(v=VS.85).aspx... -
Shell
. debug _ output _ exclusive _ unlock { . . . } -> Mutex | nil (6122.0) -
@todo
...@todo
@see Mutex#exclusive_unlock...