種類
- インスタンスメソッド (468)
- クラス (6)
- 特異メソッド (6)
- ライブラリ (6)
ライブラリ
-
shell
/ filter (480)
クラス
-
Shell
:: Filter (474)
キーワード
- + (6)
- < (6)
- > (6)
- >> (6)
- Filter (6)
- [] (6)
- append (6)
- atime (6)
- basename (6)
- blockdev? (6)
- cat (6)
- chardev? (6)
-
check
_ point (6) - chmod (6)
- chown (6)
- concat (6)
- ctime (6)
- delete (6)
- directory? (6)
- dirname (6)
- each (6)
- echo (6)
- executable? (6)
-
executable
_ real? (6) - exist? (6)
- exists? (6)
- file? (6)
-
find
_ system _ command (6) -
finish
_ all _ jobs (6) - foreach (6)
- ftype (6)
- glob (6)
- grpowned? (6)
- identical? (6)
- input (6)
- input= (6)
- inspect (6)
- join (6)
- link (6)
- lstat (6)
- mkdir (6)
- mtime (6)
- new (6)
- notify (6)
- open (6)
- out (6)
- owned? (6)
- pipe? (6)
- readable? (6)
-
readable
_ real? (6) - readlink (6)
- rehash (6)
- rename (6)
- rm (6)
- rmdir (6)
- setgid? (6)
- setuid? (6)
- size (6)
- size? (6)
- socket? (6)
- split (6)
- stat (6)
- sticky? (6)
- symlink (6)
- symlink? (6)
- system (6)
- tee (6)
- test (6)
-
to
_ a (6) -
to
_ s (6) - transact (6)
- truncate (6)
- unlink (6)
- utime (6)
-
world
_ readable? (6) -
world
_ writable? (6) - writable? (6)
-
writable
_ real? (6) - zero? (6)
- | (6)
検索結果
先頭5件
-
shell
/ filter (56000.0) -
Shell::Filter を定義しているライブラリです。
...Shell::Filter を定義しているライブラリです。... -
Shell
:: Filter # check _ point (29300.0) -
@todo
@todo -
Shell
:: Filter # file?(file) -> bool (26300.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
...FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列か IO オブジェクトを指定します。
@see FileTest.#file?... -
Shell
:: Filter # finish _ all _ jobs (26200.0) -
@todo
@todo -
Shell
:: Filter # readlink(path) -> String (23400.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param path シンボリックリンクを表す文字列を指定します。
@see File.readlink... -
Shell
:: Filter # utime(atime , mtime , *filename) -> Integer (23400.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@param atime 最終アクセス時刻を Time か、起算時からの経過秒数を数値で指定します。
@param utime 更新時刻を Time か、起......算時からの経過秒数を数値で指定します。
@see File.utime... -
Shell
:: Filter # atime(filename) -> Time (23300.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列か IO オブジェクトを指定します。
@see File.atime... -
Shell
:: Filter # chardev?(file) -> bool (23300.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
...FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列か IO オブジェクトを指定します。
@see FileTest.#chardev?... -
Shell
:: Filter # ctime(filename) -> Time (23300.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列か IO オブジェクトを指定します。
@see File.ctime... -
Shell
:: Filter # each(rs = nil) -> () (23300.0) -
フィルタの一行ずつをblockに渡します。
...行ずつをblockに渡します。
@param rs レコードセパレーターを表す文字列を指定します。
nil ならば、Shell.record_separatorの値が使用されます。
使用例
require 'shell'
sh = Shell.new
sh.cat("/etc/passwd").each { |line|
puts line
}... -
Shell
:: Filter # echo(*strings) -> Shell :: Filter (23300.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...ilter オブジェクトを返します.
@param strings シェルコマンド echo に与える引数を文字列で指定します。
動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each { |file|
file.chomp!
cat(fi......le).each { |l|
echo(l) | tee(file + ".tee") >> "all.tee"
}
}
}... -
Shell
:: Filter # foreach(path = nil , &block) -> () (23300.0) -
pathがファイルなら, File#foreach pathがディレクトリなら, Dir#foreach の動作をします。
...pathがファイルなら, File#foreach
pathがディレクトリなら, Dir#foreach
の動作をします。
@param path ファイルもしくはディレクトリのパスを文字列で指定します。
使用例
require 'shell'
Shell.verbose = false
sh = Shell.new
sh.foreach("/tmp"){... -
Shell
:: Filter # inspect -> String (23300.0) -
オブジェクトを人間が読める形式に変換した文字列を返します。
...オブジェクトを人間が読める形式に変換した文字列を返します。
@see Object#inspect... -
Shell
:: Filter # mtime(filename) -> Time (23300.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列か IO オブジェクトを指定します。
@see File.mtime... -
Shell
:: Filter # readable _ real?(file) -> bool (23300.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
...FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#readable_real?... -
Shell
:: Filter # delete(*filename) -> Integer (23200.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@see File.delete... -
Shell
:: Filter # directory?(file) -> bool (23200.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
...FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列か IO オブジェクトを指定します。
@see FileTest.#directory?...