33件ヒット
[1-33件を表示]
(0.067秒)
種類
- 特異メソッド (21)
- インスタンスメソッド (12)
ライブラリ
- shell (33)
キーワード
-
debug
_ output _ exclusive _ unlock (3) -
debug
_ output _ unlock (6) - truncate (6)
-
unalias
_ command (6) -
undef
_ system _ command (6) - unlink (6)
検索結果
先頭5件
-
Shell
. unalias _ command(alias) -> () (6213.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 (6201.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param path パスを表す文字列を指定します。
@param length 変更したいサイズを整数で与えます。
@see File.truncate... -
Shell
# 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
. debug _ output _ exclusive _ unlock { . . . } -> Mutex | nil (6201.0) -
@todo
...@todo
@see Mutex#exclusive_unlock... -
Shell
. debug _ output _ unlock -> Mutex | nil (6201.0) -
@todo
...@todo
@see Mutex#unlock......@todo
@see Thread::Mutex#unlock... -
Shell
. undef _ system _ command(command) -> Shell :: CommandProcessor (6201.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...