75件ヒット
[1-75件を表示]
(0.036秒)
種類
- 特異メソッド (39)
- インスタンスメソッド (36)
クラス
- Shell (33)
-
Shell
:: CommandProcessor (30) -
Shell
:: Filter (12)
キーワード
-
debug
_ output _ exclusive _ unlock (3) -
debug
_ output _ unlock (6) -
run
_ config (6) - truncate (18)
-
unalias
_ command (12) -
undef
_ system _ command (12) - unlink (18)
検索結果
先頭5件
-
Shell
. unalias _ command(alias) -> () (6214.0) -
commandのaliasを削除します.
...使用例: ls -la | sort -k 5 のような例。
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
# truncate(path , length) -> 0 (6202.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param path パスを表す文字列を指定します。
@param length 変更したいサイズを整数で与えます。
@see File.truncate... -
Shell
# unlink(path) -> self (6202.0) -
path がファイルなら File.unlink、path がディレクトリなら Dir.unlink の動作をします。
...path がファイルなら File.unlink、path がディレクトリなら Dir.unlink の動作をします。
@param path 削除したいパスを指定します。
@see File.unlink, Dir.unlink... -
Shell
. debug _ output _ exclusive _ unlock { . . . } -> Mutex | nil (6202.0) -
@todo
...@todo
@see Mutex#exclusive_unlock... -
Shell
. debug _ output _ unlock -> Mutex | nil (6202.0) -
@todo
...@todo
@see Mutex#unlock......@todo
@see Thread::Mutex#unlock... -
Shell
. undef _ system _ command(command) -> Shell :: CommandProcessor (6202.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 => er... -
Shell
:: CommandProcessor # truncate(path , length) -> 0 (6201.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param path パスを表す文字列を指定します。
@param length 変更したいサイズを整数で与えます。
@see File.truncate... -
Shell
:: CommandProcessor # unlink(path) -> self (6201.0) -
path がファイルなら File.unlink、path がディレクトリなら Dir.unlink の動作をします。
...path がファイルなら File.unlink、path がディレクトリなら Dir.unlink の動作をします。
@param path 削除したいパスを指定します。
@see File.unlink, Dir.unlink... -
Shell
:: CommandProcessor . run _ config -> () (6201.0) -
ユーザのホームディレクトリに "~/.rb_shell" というファイルが存在すれば、それを Kernel.#load します。
...ユーザのホームディレクトリに "~/.rb_shell" というファイルが存在すれば、それを Kernel.#load します。
存在しない時は何もしません。... -
Shell
:: CommandProcessor . unalias _ command(alias) -> self (6201.0) -
エイリアスを削除します。
エイリアスを削除します。
@param alias 削除したいエイリアスを指定します。 -
Shell
:: CommandProcessor . undef _ system _ command(command) -> self (6201.0) -
与えられたコマンドを削除します。
与えられたコマンドを削除します。
@param command 削除したいコマンド名を指定します。 -
Shell
:: Filter # truncate(path , length) -> 0 (6201.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param path パスを表す文字列を指定します。
@param length 変更したいサイズを整数で与えます。
@see File.truncate... -
Shell
:: Filter # unlink(path) -> self (6201.0) -
path がファイルなら File.unlink、path がディレクトリなら Dir.unlink の動作をします。
...path がファイルなら File.unlink、path がディレクトリなら Dir.unlink の動作をします。
@param path 削除したいパスを指定します。
@see File.unlink, Dir.unlink...