別のキーワード
ライブラリ
- ビルトイン (279)
-
cgi
/ core (24) - erb (12)
- expect (24)
-
io
/ wait (36) -
irb
/ output-method (72) - kconv (12)
-
minitest
/ unit (1) - mkmf (12)
- monitor (18)
-
net
/ ftp (24) -
net
/ http (67) -
net
/ pop (24) -
net
/ smtp (24) - openssl (36)
- rake (12)
- resolv (12)
-
rexml
/ document (132) - shell (6)
-
shell
/ command-processor (6) -
shell
/ filter (18) - stringio (48)
- strscan (24)
- thread (2)
- timeout (16)
- uri (24)
-
webrick
/ cgi (12) -
webrick
/ log (12) - win32ole (48)
- zlib (24)
クラス
-
ARGF
. class (24) - Array (57)
- CGI (24)
- ERB (12)
-
Encoding
:: Converter (12) - File (12)
- IO (116)
-
IRB
:: OutputMethod (60) -
IRB
:: StdioOutputMethod (12) - Integer (48)
- MatchData (24)
-
MiniTest
:: Unit (1) - Monitor (6)
-
MonitorMixin
:: ConditionVariable (12) - Mutex (2)
-
Net
:: FTP (24) -
Net
:: HTTP (67) -
Net
:: POP3 (24) -
Net
:: SMTP (24) - Object (12)
-
OpenSSL
:: SSL :: SSLContext (24) -
OpenSSL
:: SSL :: Session (12) -
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) -
Rake
:: Application (12) -
Resolv
:: DNS (12) - Shell (6)
-
Shell
:: CommandProcessor (6) -
Shell
:: Filter (18) - String (24)
- StringIO (48)
- StringScanner (24)
-
Thread
:: ConditionVariable (12) -
Thread
:: Mutex (10) -
URI
:: Generic (24) -
WEBrick
:: BasicLog (12) -
WEBrick
:: CGI (12) -
WIN32OLE
_ EVENT (12) -
WIN32OLE
_ PARAM (36) -
Zlib
:: GzipReader (12) -
Zlib
:: ZStream (12)
モジュール
- Kernel (28)
キーワード
- > (6)
- >> (6)
-
avail
_ out= (12) - begin (12)
- chmod (12)
- chr (24)
-
continue
_ timeout= (12) -
cpp
_ command (12) -
debug
_ output= (12) - digits (24)
- display (12)
- end (12)
- expect (24)
- fatal (12)
- fetch (36)
-
force
_ output= (12) - header (12)
- input? (12)
-
insert
_ output (12) - kconv (12)
-
on
_ event _ with _ outargs (12) -
open
_ timeout= (36) - output? (12)
- pack (21)
- pointer= (12)
- pos= (12)
- pp (12)
- ppx (12)
- pread (8)
- print (24)
- printn (12)
- puts (12)
- read (24)
-
read
_ nonblock (36) -
read
_ timeout= (36) - readpartial (48)
- retval? (12)
-
route
_ from (12) -
route
_ to (12) -
set
_ debug _ output (24) -
set
_ eoutvar (12) - sleep (12)
-
ssl
_ timeout= (24) - start (12)
- status (1)
- sysread (24)
- timeout (16)
- timeout= (24)
- timeouts= (12)
-
tty
_ output= (12) - unpack (12)
- wait (36)
-
wait
_ for _ cond (6) -
wait
_ readable (12) -
wait
_ writable (12) - write (132)
-
write
_ timeout= (7)
検索結果
先頭5件
-
Shell
# out(dev = STDOUT , &block) -> () (18226.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) {
s... -
Shell
:: CommandProcessor # out(dev = STDOUT , &block) -> () (18226.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) {
s... -
Shell
:: Filter # out(dev = STDOUT , &block) -> () (18226.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) {
s... -
CGI
# out(options = "text / html") { . . . . } (18126.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" => "close"... -
WIN32OLE
_ PARAM # output? -> bool (9149.0) -
パラメータがクライアントからの結果を受け取るためのものかを判定します。
...PARAM#input?が真)、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|
p......uts "#{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... -
ERB
# set _ eoutvar(compiler , eoutvar = & # 39; _ erbout& # 39;) -> Array (6313.0) -
ERBの中でeRubyスクリプトの出力をためていく変数を設定します。
...用した方がより容易です。
本メソッドを使用するためには、引数にて指定する eRuby コンパイラを事前に生成しておく必要があります。
@param compiler eRubyコンパイラ
@param eoutvar eRubyスクリプトの中で出力をためていく変数... -
Rake
:: Application # tty _ output=(tty _ output _ state) (6207.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
//}... -
Kernel
# timeout(sec) {|i| . . . . } -> object (6113.0) -
ブロックを sec 秒の期限付きで実行します。 ブロックの実行時間が制限を過ぎたときは例外 Timeout::Error が発生します。
...秒の期限付きで実行します。
ブロックの実行時間が制限を過ぎたときは例外
Timeout::Error が発生します。
exception_class を指定した場合には Timeout::Error の代わりに
その例外が発生します。
ブロックパラメータ i は sec がはい......制限時間なしで
ブロックを実行します。
@param sec タイムアウトする時間を秒数で指定します.
@param exception_class タイムアウトした時、発生させる例外を指定します.
=== 注意
timeout による割り込みは Thread によって実現され......ています。C 言語
レベルで実装され、Ruby のスレッドが割り込めない処理に対して
timeout は無力です。
そのような
ものは実用レベルでは少ないのですが、例をあげると Socket などは
DNSの名前解決に時間がかかった場合割り... -
Kernel
# timeout(sec , exception _ class = nil) {|i| . . . . } -> object (6113.0) -
ブロックを sec 秒の期限付きで実行します。 ブロックの実行時間が制限を過ぎたときは例外 Timeout::Error が発生します。
...秒の期限付きで実行します。
ブロックの実行時間が制限を過ぎたときは例外
Timeout::Error が発生します。
exception_class を指定した場合には Timeout::Error の代わりに
その例外が発生します。
ブロックパラメータ i は sec がはい......制限時間なしで
ブロックを実行します。
@param sec タイムアウトする時間を秒数で指定します.
@param exception_class タイムアウトした時、発生させる例外を指定します.
=== 注意
timeout による割り込みは Thread によって実現され......ています。C 言語
レベルで実装され、Ruby のスレッドが割り込めない処理に対して
timeout は無力です。
そのような
ものは実用レベルでは少ないのですが、例をあげると Socket などは
DNSの名前解決に時間がかかった場合割り... -
WIN32OLE
_ EVENT # on _ event _ with _ outargs(event = nil) {|*args| . . . } -> () (6113.0) -
イベント通知を受けて結果を呼び出し元へ返すブロックを登録します。
...に戻り値を
設定できます。
@param event イベント名を文字列かシンボルで指定します。イベント名は大文
字小文字を区別します。省略時にはすべてのイベントが対象となります。
@param args サーバがイベント通知時... -
Zlib
:: ZStream # avail _ out=(size) (6108.0) -
出力側のバッファに size バイトの空きを確保します。 すでに size バイト以上の空きがある場合、バッファは 縮められます。空きは必要な時に動的に確保されるため、通常 このメソッドを使う必要はありません。
...ト以上の空きがある場合、バッファは
縮められます。空きは必要な時に動的に確保されるため、通常
このメソッドを使う必要はありません。
@param size 出力バッファのサイズを整数で指定します。
@return size を返します。...