553件ヒット
[1-100件を表示]
(0.044秒)
種類
- インスタンスメソッド (348)
- 特異メソッド (138)
- ライブラリ (30)
- 文書 (25)
- クラス (12)
ライブラリ
- shell (192)
-
shell
/ builtin-command (48) -
shell
/ command-processor (84) -
shell
/ filter (126) -
shell
/ process-controller (6) -
shell
/ system-command (6) - win32ole (36)
クラス
- Shell (192)
-
Shell
:: AppendFile (6) -
Shell
:: AppendIO (6) -
Shell
:: Cat (6) -
Shell
:: CommandProcessor (84) -
Shell
:: Concat (6) -
Shell
:: Echo (6) -
Shell
:: Filter (126) -
Shell
:: Glob (6) -
Shell
:: ProcessController (6) -
Shell
:: SystemCommand (6) -
Shell
:: Tee (6) -
Shell
:: Void (6) -
WIN32OLE
_ TYPELIB (12) -
WIN32OLE
_ VARIANT (12)
キーワード
- < (6)
- > (6)
- >> (6)
-
NEWS for Ruby 2
. 6 . 0 (7) -
NEWS for Ruby 2
. 7 . 0 (6) -
WIN32OLE
_ VARIANT (12) - [] (18)
-
alias
_ command (6) - cat (18)
- cd (12)
- chdir (6)
- cwd (6)
-
def
_ system _ command (6) - dir (6)
- each (6)
- echo (18)
- foreach (18)
- getwd (6)
- glob (18)
-
install
_ system _ commands (6) - link (18)
- mkdir (18)
-
optparse
/ shellwords (12) - out (18)
- popd (6)
- popdir (6)
- pushd (6)
- pushdir (6)
- pwd (6)
-
ruby 1
. 6 feature (12) - shell (6)
- symlink (18)
- system (18)
-
system
_ path (6) -
system
_ path= (6) - tee (18)
- test (18)
-
to
_ a (6) -
to
_ s (6) - transact (18)
-
unalias
_ command (6) -
undef
_ system _ command (6) -
win32
/ registry (12) - | (6)
検索結果
先頭5件
-
Shell
. new(pwd = Dir . pwd , umask = nil) -> Shell (39218.0) -
プロセスのカレントディレクトリをpwd で指定されたディレクトリとするShellオ ブジェクトを生成します.
...プロセスのカレントディレクトリをpwd で指定されたディレクトリとするShellオ
ブジェクトを生成します.
@param pwd プロセスのカレントディレクトリをpwd で指定されたディレクトリとします。
指定しない場合は、Dir.... -
Shell
:: Filter . new(sh) -> Shell :: Filter (21218.0) -
Shell::Filter クラスのインスタンスを返します。 通常このメソッドを直接使う機会は少ないでしょう。
...
Shell::Filter クラスのインスタンスを返します。
通常このメソッドを直接使う機会は少ないでしょう。... -
Shell
:: ProcessController . new(shell) (21214.0) -
自身を初期化します。
...自身を初期化します。
@param shell Shell のインスタンスを指定します。... -
Shell
:: CommandProcessor . new(shell) (21202.0) -
@todo
@todo -
Shell
# system(command , *opts) -> Shell :: SystemCommand (21131.0) -
command を実行する.
...で指定します。
@param opts command のオプションを文字列で指定します。複数可。
使用例:
require 'shell'
Shell.verbose = false
sh = Shell.new
print sh.system("ls", "-l")
Shell.def_system_command("head")
sh.system("ls", "-l") | sh.head("-n 3") > STDOUT... -
Shell
. undef _ system _ command(command) -> Shell :: CommandProcessor (21131.0) -
commandを削除します.
...and 削除するコマンドの文字列を指定します。
動作例:
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
}
}
res... -
Shell
# cat(*files) -> Shell :: Filter (21125.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...param files シェルコマンド cat に与えるファイル名を文字列で指定します。
動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each { |file|
file.chomp!
cat(file).each { |l|
echo(l) | tee(... -
Shell
# echo(*strings) -> Shell :: Filter (21125.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
....
@param strings シェルコマンド echo に与える引数を文字列で指定します。
動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each { |file|
file.chomp!
cat(file).each { |l|
echo(l) | tee(fi... -
Shell
# glob(pattern) -> Shell :: Filter (21125.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...す。
パターンの書式については、Dir.[] を参照してください。
動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each { |file|
file.chomp!
cat(file).each { |l|
echo(l) | tee(f... -
Shell
# tee(file) -> Shell :: Filter (21125.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
...@param file シェルコマンドtee に与えるファイル名を文字列で指定します。
動作例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
glob("*.txt").to_a.each { |file|
file.chomp!
cat(file).each { |l|
echo(l) | tee(... -
Shell
# link(old , new) -> 0 (21107.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param old ファイル名を表す文字列を指定します。
@param new ファイル名を表す文字列を指定します。
@see File.link... -
Shell
# symlink(old , new) -> 0 (21107.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param old ファイル名を表す文字列を指定します。
@param new シンボリックリンクを表す文字列を指定します。
@see File.symlink... -
Shell
:: AppendFile . new(sh , filename) (21101.0) -
@todo
@todo -
Shell
:: AppendIO . new(sh , filename) (21101.0) -
@todo
@todo -
Shell
:: Cat . new(sh , *filenames) (21101.0) -
@todo
@todo -
Shell
:: Concat . new(sh , *jobs) (21101.0) -
@todo
@todo -
Shell
:: Echo . new(sh , *strings) (21101.0) -
@todo
@todo