126件ヒット
[1-100件を表示]
(0.027秒)
種類
- インスタンスメソッド (90)
- 特異メソッド (24)
- クラス (12)
クラス
- Shell (36)
-
Shell
:: AppendFile (12) -
Shell
:: AppendIO (12) -
Shell
:: CommandProcessor (24) -
Shell
:: Filter (30)
キーワード
- AppendFile (6)
- AppendIO (6)
- [] (18)
- append (18)
- input= (12)
- mkdir (18)
- new (12)
- test (18)
-
unalias
_ command (6) -
undef
_ system _ command (6) - | (6)
検索結果
先頭5件
-
Shell
# append(to , filter) -> Shell :: AppendFile | Shell :: AppendIO (6302.0) -
@todo
...@todo
@param to 文字列か IO を指定します。
@param filter Shell::Filter のインスタンスを指定します。... -
Shell
:: CommandProcessor # append(to , filter) -> Shell :: AppendFile | Shell :: AppendIO (6301.0) -
@todo
...@todo
@param to 文字列か IO を指定します。
@param filter Shell::Filter のインスタンスを指定します。... -
Shell
:: Filter # append(to , filter) -> Shell :: AppendFile | Shell :: AppendIO (6301.0) -
@todo
...@todo
@param to 文字列か IO を指定します。
@param filter Shell::Filter のインスタンスを指定します。... -
Shell
:: AppendFile (6001.0) -
-
Shell
:: AppendIO (6001.0) -
-
Shell
:: AppendFile # input=(filter) (3001.0) -
@todo
@todo -
Shell
:: AppendFile . new(sh , filename) (3001.0) -
@todo
@todo -
Shell
:: AppendIO # input=(filter) (3001.0) -
@todo
@todo -
Shell
:: AppendIO . new(sh , filename) (3001.0) -
@todo
@todo -
Shell
# [](command , file1 , file2 = nil) -> bool | Time | Integer | nil (8.0) -
Kernel.#test や FileTest のメソッドに処理を委譲します。
...指定します。
@param file2 文字列でファイルへのパスを指定します。
require 'shell'
Shell.verbose = false
sh = Shell.new
begin
sh.mkdir("foo")
rescue
end
p sh[?e, "foo"] # => true
p sh[:e, "foo"] # => true
p sh["e", "foo"] # => tru... -
Shell
# mkdir(*path) -> Array (8.0) -
Dir.mkdirと同じです。 (複数可)
...ram path 作成するディレクトリ名を文字列で指定します。
@return 作成するディレクトリの一覧の配列を返します。
使用例
require 'shell'
Shell.verbose = false
sh = Shell.new
begin
p sh.mkdir("foo") #=> ["foo"]
rescue => err
puts err
end... -
Shell
# test(command , file1 , file2 = nil) -> bool | Time | Integer | nil (8.0) -
Kernel.#test や FileTest のメソッドに処理を委譲します。
...指定します。
@param file2 文字列でファイルへのパスを指定します。
require 'shell'
Shell.verbose = false
sh = Shell.new
begin
sh.mkdir("foo")
rescue
end
p sh[?e, "foo"] # => true
p sh[:e, "foo"] # => true
p sh["e", "foo"] # => tru... -
Shell
. unalias _ command(alias) -> () (8.0) -
commandのaliasを削除します.
...例。
require 'shell'
Shell.def_system_command("ls")
Shell.alias_command("lsla", "ls", "-a", "-l")
Shell.def_system_command("sort")
sh = Shell.new
sh.transact {
(lsla | sort("-k 5")).each {|l|
puts l
}
}
Shell.unalias_command("lsla")
begin
Shell.unalias_command("......lsla")
rescue NameError => err
puts err
end... -
Shell
. undef _ system _ command(command) -> Shell :: CommandProcessor (8.0) -
commandを削除します.
...指定します。
動作例:
require 'shell'
Shell.def_system_command("ls")
# ls を定義
Shell.undef_system_command("ls")
# ls を 削除
sh = Shell.new
begin
sh.transact {
ls("-l").each {|l|
puts l
}
}
rescue NameError => err
puts err
end... -
Shell
:: CommandProcessor # [](command , file1 , file2 = nil) -> bool | Time | Integer | nil (7.0) -
Kernel.#test や FileTest のメソッドに処理を委譲します。
...指定します。
@param file2 文字列でファイルへのパスを指定します。
require 'shell'
Shell.verbose = false
sh = Shell.new
begin
sh.mkdir("foo")
rescue
end
p sh[?e, "foo"] # => true
p sh[:e, "foo"] # => true
p sh["e", "foo"] # => tru... -
Shell
:: CommandProcessor # mkdir(*path) -> Array (7.0) -
Dir.mkdirと同じです。 (複数可)
...ram path 作成するディレクトリ名を文字列で指定します。
@return 作成するディレクトリの一覧の配列を返します。
使用例
require 'shell'
Shell.verbose = false
sh = Shell.new
begin
p sh.mkdir("foo") #=> ["foo"]
rescue => err
puts err
end... -
Shell
:: CommandProcessor # test(command , file1 , file2 = nil) -> bool | Time | Integer | nil (7.0) -
Kernel.#test や FileTest のメソッドに処理を委譲します。
...指定します。
@param file2 文字列でファイルへのパスを指定します。
require 'shell'
Shell.verbose = false
sh = Shell.new
begin
sh.mkdir("foo")
rescue
end
p sh[?e, "foo"] # => true
p sh[:e, "foo"] # => true
p sh["e", "foo"] # => tru...