るりまサーチ

最速Rubyリファレンスマニュアル検索!
33件ヒット [1-33件を表示] (0.067秒)
トップページ > クエリ:-[x] > クエリ:UN[x] > クラス:Shell[x]

別のキーワード

  1. _builtin -
  2. open-uri open
  3. irb/input-method new
  4. irb/input-method gets
  5. matrix -

検索結果

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...