ライブラリ
- ビルトイン (36)
-
cgi
/ core (12) -
cgi
/ session (12) - openssl (12)
- rake (24)
-
rubygems
/ config _ file (48) -
rubygems
/ installer (12) -
rubygems
/ source _ info _ cache (12) - shell (330)
-
shell
/ builtin-command (12) -
shell
/ command-processor (330) -
shell
/ filter (336) -
webrick
/ httprequest (12) - zlib (36)
クラス
-
CGI
:: Session :: FileStore (12) - File (12)
-
Gem
:: ConfigFile (48) -
Gem
:: Installer (12) -
Gem
:: SourceInfoCache (12) - IO (24)
-
OpenSSL
:: SSL :: SSLContext (12) - Shell (330)
-
Shell
:: AppendFile (6) -
Shell
:: CommandProcessor (330) -
Shell
:: Filter (336) -
Shell
:: Glob (6) -
WEBrick
:: HTTPRequest (12) -
Zlib
:: GzipFile (12) -
Zlib
:: GzipWriter (24)
モジュール
-
CGI
:: QueryExtension (12) - FileUtils (24)
キーワード
- > (6)
- >> (6)
- [] (18)
- append (18)
- atime (18)
- basename (18)
- blockdev? (18)
-
bulk
_ threshold (12) -
bulk
_ threshold= (12) - cat (18)
- chardev? (18)
- chmod (18)
- chown (18)
- closed? (12)
- ctime (18)
- delete (18)
- directory? (18)
- dirname (18)
- each (18)
- echo (18)
- executable? (18)
-
executable
_ real? (18) - exist? (18)
- exists? (18)
- file? (18)
- files (12)
- finish (24)
- flock (12)
- flush (24)
- foreach (18)
- ftype (18)
- glob (18)
- grpowned? (18)
- hash (12)
- input= (6)
- join (18)
- link (18)
- lstat (18)
- mtime (18)
- open (18)
- out (18)
- owned? (18)
- pipe? (18)
- query (12)
-
read
_ cache _ data (12) - readable? (18)
-
readable
_ real? (18) - readlink (18)
- rename (18)
- restore (12)
- rm (18)
- ruby (12)
-
set
_ params (12) - setgid? (18)
- setuid? (18)
- shebang (12)
- size (18)
- size? (18)
- socket? (18)
- split (18)
- stat (18)
- sticky? (18)
- symlink (18)
- symlink? (18)
- tee (18)
- test (18)
- truncate (18)
- unlink (18)
- utime (18)
- writable? (18)
-
writable
_ real? (18) - zero? (18)
検索結果
先頭5件
-
Shell
# tee(file) -> Shell :: Filter (3244.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...am file シェルコマンドtee に与えるファイル名を文字列で指定します。
動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each { |file|
file.chomp!
cat(file).each { |l|
echo(l) | tee(file... -
Shell
:: CommandProcessor # tee(file) -> Shell :: Filter (3244.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...am file シェルコマンドtee に与えるファイル名を文字列で指定します。
動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each { |file|
file.chomp!
cat(file).each { |l|
echo(l) | tee(file... -
Shell
:: Filter # tee(file) -> Shell :: Filter (3244.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...am file シェルコマンドtee に与えるファイル名を文字列で指定します。
動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each { |file|
file.chomp!
cat(file).each { |l|
echo(l) | tee(file... -
Shell
# cat(*files) -> Shell :: Filter (3237.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...m files シェルコマンド cat に与えるファイル名を文字列で指定します。
動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each { |file|
file.chomp!
cat(file).each { |l|
echo(l) | tee(file... -
Shell
:: CommandProcessor # cat(*files) -> Shell :: Filter (3237.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...m files シェルコマンド cat に与えるファイル名を文字列で指定します。
動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each { |file|
file.chomp!
cat(file).each { |l|
echo(l) | tee(file... -
Shell
:: Filter # cat(*files) -> Shell :: Filter (3237.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...m files シェルコマンド cat に与えるファイル名を文字列で指定します。
動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each { |file|
file.chomp!
cat(file).each { |l|
echo(l) | tee(file... -
Shell
# lstat(filename) -> File :: Stat (3224.0) -
File クラスにある同名のクラスメソッドと同じです.
...
File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@see File.lstat... -
Shell
# stat(filename) -> File :: Stat (3224.0) -
File クラスにある同名のクラスメソッドと同じです.
...
File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@see File.stat... -
Shell
:: CommandProcessor # lstat(filename) -> File :: Stat (3224.0) -
File クラスにある同名のクラスメソッドと同じです.
...
File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@see File.lstat... -
Shell
:: CommandProcessor # stat(filename) -> File :: Stat (3224.0) -
File クラスにある同名のクラスメソッドと同じです.
...
File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@see File.stat... -
Shell
:: Filter # lstat(filename) -> File :: Stat (3224.0) -
File クラスにある同名のクラスメソッドと同じです.
...
File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@see File.lstat... -
Shell
:: Filter # stat(filename) -> File :: Stat (3224.0) -
File クラスにある同名のクラスメソッドと同じです.
...
File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@see File.stat... -
Zlib
:: GzipWriter # finish -> File (3203.0) -
フッターを書き出し、GzipWriter オブジェクトをクローズします。close と finish の違いは Zlib::GzipFile#close, Zlib::GzipFile#finish を 参照して下さい。
...フッターを書き出し、GzipWriter オブジェクトをクローズします。close と
finish の違いは Zlib::GzipFile#close, Zlib::GzipFile#finish を
参照して下さい。
注意: Ruby の finalizer の制約のため、GzipWriter オブジェクトは
必ずクローズしてく......def case_finish
filename='hoge1.gz'
gz = Zlib::GzipWriter.open(filename, 9)
gz.puts "hogehoge\n" * 100
f = gz.finish
p f.atime
# 例
#=> Sun Jul 06 15:43:57 +0900 2008
end
def case_close
filename='hoge1.gz'
gz = Zlib::GzipWriter.open(filename, 9)
gz.......puts "hogehoge\n" * 100
f = gz.close
begin
p f.atime
rescue IOError => err
puts err #=> closed stream
end
end
case_finish
case_close... -
Shell
# echo(*strings) -> Shell :: Filter (3137.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...与える引数を文字列で指定します。
動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each { |file|
file.chomp!
cat(file).each { |l|
echo(l) | tee(file + ".tee") >> "all.tee"
}
}
}... -
Shell
# glob(pattern) -> Shell :: Filter (3137.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...Dir.[] を参照してください。
動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each { |file|
file.chomp!
cat(file).each { |l|
echo(l) | tee(file + ".tee") >> "all.tee"
}
}
}
@see Dir.[]... -
Shell
:: CommandProcessor # echo(*strings) -> Shell :: Filter (3137.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...与える引数を文字列で指定します。
動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each { |file|
file.chomp!
cat(file).each { |l|
echo(l) | tee(file + ".tee") >> "all.tee"
}
}
}...