2195件ヒット
[1-100件を表示]
(0.085秒)
ライブラリ
- English (44)
- ビルトイン (519)
-
cgi
/ core (22) - csv (33)
-
drb
/ timeridconv (11) - erb (22)
- etc (11)
- expect (22)
-
io
/ wait (33) -
irb
/ context (11) -
irb
/ output-method (55) - kconv (88)
-
minitest
/ unit (1) - mkmf (11)
- monitor (16)
-
net
/ ftp (22) -
net
/ http (83) -
net
/ imap (22) -
net
/ pop (33) -
net
/ smtp (33) - open3 (77)
- openssl (44)
- pp (22)
- prettyprint (55)
-
rexml
/ document (121) -
rubygems
/ package / tar _ output (66) -
rubygems
/ source _ index (11) -
rubygems
/ user _ interaction (11) - shell (33)
-
shell
/ command-processor (6) -
shell
/ filter (18) -
shell
/ process-controller (6) - socket (206)
- stringio (44)
- strscan (22)
- thread (2)
- timeout (41)
- tracer (33)
- uri (22)
-
webrick
/ cgi (11) -
webrick
/ log (11) - win32ole (44)
- zlib (55)
クラス
-
ARGF
. class (22) - Array (52)
- CGI (22)
-
CGI
:: Cookie (11) - CSV (22)
-
DRb
:: TimerIdConv (11) - ERB (22)
-
Encoding
:: Converter (11) - File (11)
-
Gem
:: Package :: TarOutput (55) -
Gem
:: SourceIndex (11) -
Gem
:: StreamUI (11) - IO (271)
-
IRB
:: Context (11) -
IRB
:: OutputMethod (44) -
IRB
:: StdioOutputMethod (11) - Integer (44)
- MatchData (22)
-
MiniTest
:: Unit (1) - Monitor (5)
-
MonitorMixin
:: ConditionVariable (11) - Mutex (2)
-
Net
:: FTP (22) -
Net
:: HTTP (83) -
Net
:: IMAP (11) -
Net
:: IMAP :: Address (11) -
Net
:: POP3 (33) -
Net
:: SMTP (33) - Object (22)
-
OpenSSL
:: SSL :: SSLContext (22) -
OpenSSL
:: SSL :: Session (11) - PP (22)
- PrettyPrint (55)
-
RDoc
:: Options (11) -
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) - Shell (33)
-
Shell
:: CommandProcessor (6) -
Shell
:: Filter (18) -
Shell
:: ProcessController (6) - Socket (110)
- String (66)
- StringIO (44)
- StringScanner (22)
- TCPSocket (8)
-
Thread
:: ConditionVariable (11) -
Thread
:: Mutex (9) - Tracer (33)
-
URI
:: Generic (22) -
WEBrick
:: BasicLog (11) -
WEBrick
:: CGI (11) -
WIN32OLE
_ EVENT (11) -
WIN32OLE
_ PARAM (33) -
Zlib
:: GzipReader (11) -
Zlib
:: Inflate (11) -
Zlib
:: ZStream (33)
モジュール
- Etc (11)
-
GC
:: Profiler (11) - Kconv (44)
- Kernel (143)
- Open3 (77)
-
OpenSSL
:: X509 (11) -
Socket
:: Constants (88) - Timeout (19)
キーワード
-
$ CHILD _ STATUS (11) -
$ DEFAULT _ OUTPUT (11) -
$ OUTPUT _ FIELD _ SEPARATOR (11) -
$ OUTPUT _ RECORD _ SEPARATOR (11) -
$ stdout (11) - << (11)
- > (6)
- >> (6)
-
AF
_ ROUTE (22) - CSV (11)
-
IPPROTO
_ ROUTING (22) -
IP
_ ROUTER _ ALERT (22) -
MSG
_ DONTROUTE (22) -
MSG
_ OOB (22) -
NEWS for Ruby 2
. 2 . 0 (10) -
PF
_ ROUTE (22) - Ruby用語集 (11)
-
SC
_ TIMEOUTS (11) -
SO
_ DONTROUTE (22) -
SO
_ OOBINLINE (22) - STDOUT (11)
- TarOutput (11)
-
V
_ ERR _ OUT _ OF _ MEM (11) -
add
_ gem _ contents (11) -
add
_ signatures (11) -
avail
_ out (11) - begin (11)
-
block
_ output _ synchronize (6) - cgi (11)
-
cgi
/ session (11) - chmod (11)
- chr (22)
-
continue
_ timeout (11) -
cpp
_ command (11) -
debug
_ output _ exclusive _ unlock (3) -
debug
_ output _ lock (6) -
debug
_ output _ locked? (6) -
debug
_ output _ try _ lock (6) -
debug
_ output _ unlock (6) - digits (22)
- display (11)
- end (11)
- expect (22)
- fatal (11)
- fetch (33)
-
flush
_ next _ out (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 (81)
-
on
_ event _ with _ outargs (11) - open (15)
-
open
_ timeout (44) - outdated (11)
- output (11)
- output? (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 (11)
- printn (11)
- puts (11)
-
rdoc
/ markdown (11) - read (22)
-
read
_ nonblock (33) -
read
_ timeout (44) - readpartial (44)
- report (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) - start (11)
- status (1)
- stdout (22)
-
stdout
_ mutex (11) - sysread (22)
- tcp (22)
- timeout (63)
-
to
_ f (11) -
total
_ out (11) - toutf16 (22)
- toutf32 (22)
- toutf8 (22)
- unpack (11)
- wait (33)
-
wait
_ for _ cond (5) -
wait
_ readable (11) -
wait
_ writable (11) - write (121)
-
write
_ timeout (6)
検索結果
先頭5件
-
Shell
# out(dev = STDOUT , &block) -> () (18313.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) -> () (18313.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) -> () (18313.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") { . . . . } (18191.0) -
HTTP ヘッダと、ブロックで与えられた文字列を標準出力に出力します。
...に出力します。
HEADリクエスト (REQUEST_METHOD == "HEAD") の場合は HTTP ヘッダのみを出力します。
charset が "iso-2022-jp"・"euc-jp"・"shift_jis" のいずれかで
ある場合は文字列エンコーディングを自動変換し、language を "ja"にします。
@......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"......"connection" => "close",
"type" => "text/html",
"charset" => "iso-2022-jp",
# Content-Type: text/html; charset=iso-2022-jp
"language" => "ja",
"expires" => Time.now + (3600 * 24 * 30),... -
irb
/ output-method (12000.0) -
irb が出力を扱うためのサブライブラリです。
irb が出力を扱うためのサブライブラリです。 -
Timeout
. # timeout(sec , exception _ class = nil) {|i| . . . } -> object (9230.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:......スレッドが割り込めない処理に対して timeout は無力です。
そのようなものは実用レベルでは少ないのですが、
Socket などは DNSの名前解決に時間がかかった場合割り込めません
(resolv-replace を使用する必要があります)。
その... -
Timeout
. # timeout(sec , exception _ class , message) {|i| . . . } -> object (9230.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:......スレッドが割り込めない処理に対して timeout は無力です。
そのようなものは実用レベルでは少ないのですが、
Socket などは DNSの名前解決に時間がかかった場合割り込めません
(resolv-replace を使用する必要があります)。
その... -
ERB
# set _ eoutvar(compiler , eoutvar = & # 39; _ erbout& # 39;) -> Array (6400.0) -
ERBの中でeRubyスクリプトの出力をためていく変数を設定します。
...用した方がより容易です。
本メソッドを使用するためには、引数にて指定する eRuby コンパイラを事前に生成しておく必要があります。
@param compiler eRubyコンパイラ
@param eoutvar eRubyスクリプトの中で出力をためていく変数... -
Encoding
:: Converter # insert _ output(string) -> nil (6272.0) -
変換器内のバッファに文字列を挿入します。 バッファに保持された文字列は、次の変換時の変換結果と一緒に返されます。
...t[][ruby]{
ec = Encoding::Converter.new("utf-8", "iso-8859-1")
src = "HIRAGANA LETTER A is \u{3042}."
dst = ""
p ec.primitive_convert(src, dst) #=> :undefined_conversion
puts "[#{dst.dump}, #{src.dump}]" #=> ["HIRAGANA LETTER A is ", "."]
ec.insert_output("<err>")
p ec.primitive_convert(src, ds......"utf-8", "iso-2022-jp")
src = "\u{306F 3041 3068 2661 3002}" # U+2661 is not representable in iso-2022-jp
dst = ""
p ec.primitive_convert(src, dst) #=> :undefined_conversion
puts "[#{dst.dump}, #{src.dump}]" #=> ["\e$B$O$!$H".force_encoding("ISO-2022-JP"), "\xE3\ x80\x82"]
ec.insert_output......"?" # state change required to output "?".
p ec.primitive_convert(src, dst) #=> :finished
puts "[#{dst.dump}, #{src.dump}]" #=> ["\e$B$O$!$H\e(B?\e$B!#\e(B".force_encoding("ISO-20 22-JP"), ""]
//}... -
Net
:: IMAP :: Address # route -> String | nil (6232.0) -
メールアドレスの SMTP at-domain-list を返します。
...メールアドレスの SMTP at-domain-list を返します。
存在しない場合は nil を返します。
通常は nil を返します。... -
WIN32OLE
_ PARAM # output? -> bool (6224.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......t 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...