ライブラリ
-
drb
/ extservm (1) -
irb
/ cmd / chws (2) -
irb
/ cmd / help (1) -
irb
/ cmd / load (3) -
irb
/ cmd / nop (2) -
irb
/ cmd / pushws (3) -
irb
/ cmd / subirb (4) -
irb
/ ext / use-loader (2) -
irb
/ extend-command (3) - mkmf (8)
-
net
/ imap (1) - optparse (12)
- rake (1)
-
rake
/ packagetask (4) -
rubygems
/ command (27) -
rubygems
/ command _ manager (7) -
rubygems
/ commands / build _ command (5) -
rubygems
/ commands / dependency _ command (6) -
rubygems
/ commands / lock _ command (2) -
rubygems
/ commands / unpack _ command (1) -
rubygems
/ commands / update _ command (2) -
rubygems
/ commands / which _ command (2) -
rubygems
/ version _ option (2) - shell (10)
-
shell
/ builtin-command (2) -
shell
/ command-processor (68) -
shell
/ filter (10) -
shell
/ process-controller (5) -
shell
/ system-command (15)
クラス
-
DRb
:: ExtServManager (1) -
Gem
:: Command (27) -
Gem
:: CommandManager (7) -
Gem
:: Commands :: BuildCommand (5) -
Gem
:: Commands :: DependencyCommand (6) -
Gem
:: Commands :: LockCommand (2) -
Gem
:: Commands :: UnpackCommand (1) -
Gem
:: Commands :: UpdateCommand (2) -
Gem
:: Commands :: WhichCommand (2) -
IRB
:: ExtendCommand :: ChangeWorkspace (1) -
IRB
:: ExtendCommand :: CurrentWorkingWorkspace (1) -
IRB
:: ExtendCommand :: Foreground (1) -
IRB
:: ExtendCommand :: Help (1) -
IRB
:: ExtendCommand :: IrbCommand (1) -
IRB
:: ExtendCommand :: Jobs (1) -
IRB
:: ExtendCommand :: Kill (1) -
IRB
:: ExtendCommand :: Load (1) -
IRB
:: ExtendCommand :: Nop (2) -
IRB
:: ExtendCommand :: PopWorkspace (1) -
IRB
:: ExtendCommand :: PushWorkspace (1) -
IRB
:: ExtendCommand :: Require (1) -
IRB
:: ExtendCommand :: Source (1) -
IRB
:: ExtendCommand :: Workspaces (1) -
Net
:: IMAP :: FetchData (1) - OptionParser (12)
-
Rake
:: PackageTask (4) - Shell (10)
-
Shell
:: BuiltInCommand (2) -
Shell
:: CommandProcessor (68) -
Shell
:: Filter (10) -
Shell
:: ProcessController (5) -
Shell
:: SystemCommand (15)
モジュール
- FileUtils (1)
-
Gem
:: VersionOption (2) -
IRB
:: ExtendCommandBundle (5) - Kernel (8)
キーワード
- [] (4)
- active? (2)
-
add
_ extra _ args (1) -
add
_ option (1) -
add
_ platform _ option (1) -
add
_ schedule (1) -
add
_ version _ option (1) - append (1)
- arguments (3)
- atime (1)
- attr (1)
- basename (1)
- begins? (1)
- blockdev? (1)
- cat (3)
-
cc
_ command (1) - chardev? (1)
-
check
_ point (1) - chmod (1)
- chown (1)
-
command
_ names (1) -
command
_ processor (1) - complain (1)
- concat (1)
-
cpp
_ command (1) - ctime (1)
- defaults (1)
- defaults= (1)
-
defaults
_ str (1) - delete (1)
- description (1)
- directory? (1)
- dirname (1)
-
do
_ rubygems _ update (1) - each (1)
- echo (3)
- executable? (1)
-
executable
_ real? (1) - execute (17)
- exist? (1)
- exists? (1)
- file? (1)
-
find
_ command (1) -
find
_ command _ possibilities (1) -
find
_ gems (1) -
find
_ paths (1) -
find
_ reverse _ dependencies (1) -
find
_ system _ command (3) -
finish
_ all _ jobs (1) - flush (1)
- foreach (1)
- ftype (1)
-
gem
_ paths (1) -
get
_ all _ gem _ names (1) -
get
_ one _ gem _ name (1) -
get
_ one _ optional _ argument (1) -
get
_ path (1) - glob (3)
- grpowned? (1)
- handles? (1)
- identical? (1)
- input= (1)
-
install
_ alias _ method (1) - invoke (1)
-
irb
_ context (2) -
irb
_ exit (1) -
irb
_ load (1) -
irb
_ require (1) - join (1)
- kill (1)
-
kill
_ job (1) - link (1)
-
link
_ command (1) -
load
_ gemspecs (1) - lstat (1)
- mkdir (1)
- mtime (1)
- name (1)
- notify (3)
- on (12)
- open (1)
- out (1)
- owned? (1)
- pipe? (1)
-
print
_ dependencies (1) -
process
_ args (1) -
program
_ name (1) -
program
_ name= (1) - readable? (1)
-
readable
_ real? (1) - readlink (1)
-
register
_ command (1) - rehash (1)
-
remove
_ option (1) - rename (1)
- rm (1)
- rmdir (1)
- run (1)
- service (1)
- setgid? (1)
- setuid? (1)
- sfork (1)
- sh (1)
-
show
_ help (1) -
show
_ lookup _ failure (1) - size (1)
- size? (1)
- socket? (1)
-
spec
_ path (1) - split (1)
- start (1)
-
start
_ export (1) -
start
_ import (1) -
start
_ job (1) - stat (1)
- sticky? (1)
- summary (1)
- summary= (1)
-
super
_ each (1) - symlink (1)
- symlink? (1)
- system (3)
-
tar
_ command (1) -
tar
_ command= (1) - tee (3)
- terminate (1)
-
terminate
_ job (1) - test (3)
-
to
_ a (1) - transact (3)
- truncate (1)
-
try
_ do (2) - unlink (1)
- usage (3)
- utime (1)
- wait? (2)
-
when
_ invoked (1) -
which
_ to _ update (1) -
world
_ readable? (1) -
world
_ writable? (1) - writable? (1)
-
writable
_ real? (1) - xpopen (2)
- xsystem (1)
- yaml? (1)
- zero? (1)
-
zip
_ command (1) -
zip
_ command= (1)
検索結果
先頭5件
-
Gem
:: Command # command -> String (90607.0) -
コマンドの名前を返します。
コマンドの名前を返します。 -
Shell
:: SystemCommand # command -> String (90607.0) -
@todo
@todo
コマンド名を返します。 -
Gem
:: CommandManager # find _ command(command _ name) -> Gem :: Command | nil (64849.0) -
登録されているコマンドからマッチしたものを返します。
登録されているコマンドからマッチしたものを返します。
@param command_name コマンド名を文字列で指定します。
@return Gem::Command のサブクラスのインスタンスを返します。
@raise RuntimeError マッチする可能性のあるコマンドが複数ある場合に発生します。
また、マッチするコマンドが無かった場合にも発生します。 -
Gem
:: CommandManager # find _ command _ possibilities(command _ name) -> Array (64228.0) -
登録されているコマンドでマッチする可能性のあるものを返します。
登録されているコマンドでマッチする可能性のあるものを返します。
@param command_name コマンド名を文字列で指定します。 -
Gem
:: CommandManager # register _ command(command _ name) -> false (64228.0) -
コマンドを自身に登録します。
コマンドを自身に登録します。
@param command_name コマンド名をシンボルで指定します。 -
Gem
:: CommandManager # command _ names -> Array (63607.0) -
登録されているコマンド名の配列を返します。
登録されているコマンド名の配列を返します。 -
Shell
:: CommandProcessor # find _ system _ command(command) (55210.0) -
@todo
@todo -
Gem
:: Commands :: BuildCommand # yaml?(filename) -> bool (45604.0) -
与えられたファイル名を持つファイルが yaml ファイルである場合に真を返します。
与えられたファイル名を持つファイルが yaml ファイルである場合に真を返します。
@param filename ファイル名を指定します。 -
Shell
:: SystemCommand # name -> String (45307.0) -
@todo
@todo
コマンド名を返します。 -
Gem
:: Commands :: BuildCommand # arguments -> String (45304.0) -
引数の説明を表す文字列を返します。
引数の説明を表す文字列を返します。 -
Gem
:: Commands :: BuildCommand # load _ gemspecs(filename) -> Array (45304.0) -
gemspec ファイルをロードします。
gemspec ファイルをロードします。
@param filename ファイル名を指定します。 -
Gem
:: Commands :: BuildCommand # usage -> String (45304.0) -
使用方法を表す文字列を返します。
使用方法を表す文字列を返します。 -
Gem
:: Commands :: DependencyCommand # arguments -> String (45304.0) -
引数の説明を表す文字列を返します。
引数の説明を表す文字列を返します。 -
Gem
:: Commands :: DependencyCommand # usage -> String (45304.0) -
使用方法を表す文字列を返します。
使用方法を表す文字列を返します。 -
Gem
:: Commands :: LockCommand # complain(message) -> () (45304.0) -
指定されたメッセージを表示します。--strict が有効な場合は例外が発生します。
指定されたメッセージを表示します。--strict が有効な場合は例外が発生します。
@param message 表示するメッセージを指定します。
@raise Gem::Exception コマンドラインオプションに --strict が指定されている場合に発生します。 -
Gem
:: Commands :: LockCommand # spec _ path(gem _ full _ name) -> String (45304.0) -
指定された Gem パッケージの gemspec ファイルのフルパスを返します。
指定された Gem パッケージの gemspec ファイルのフルパスを返します。
@param gem_full_name Gem パッケージの名前を指定します。 -
Gem
:: Commands :: UnpackCommand # get _ path(gemname , version _ req) -> String | nil (45304.0) -
引数で指定された条件にマッチする Gem パッケージを保存しているパスを返します。
引数で指定された条件にマッチする Gem パッケージを保存しているパスを返します。
@param gemname Gem パッケージの名前を指定します。
@param version_req バージョンの満たすべき条件を文字列で指定します。 -
Gem
:: Commands :: UpdateCommand # do _ rubygems _ update(version) (45304.0) -
RubyGems 自体を更新します。
RubyGems 自体を更新します。 -
Gem
:: Commands :: UpdateCommand # which _ to _ update(highest _ installed _ gems , gem _ names) -> Array (45304.0) -
更新が必要な Gem のリストを返します。
更新が必要な Gem のリストを返します。 -
Gem
:: Commands :: WhichCommand # find _ paths(package _ name , dirs) -> Array (45304.0) -
dirs から package_name という名前を持つファイルを探索します。
dirs から package_name という名前を持つファイルを探索します。
以下の拡張子を持つファイルが対象です。
%w[.rb .rbw .so .dll .bundle]
@param package_name ファイルの名前を指定します。
@param dirs 探索するディレクトリを文字列の配列で指定します。 -
Gem
:: Commands :: WhichCommand # gem _ paths(spec) -> Array (45304.0) -
与えられた Gem::Specification のインスタンスからその Gem が require するファイルのあるディレクトリをまとめて返します。
与えられた Gem::Specification のインスタンスからその Gem が
require するファイルのあるディレクトリをまとめて返します。
@param spec Gem::Specification のインスタンスを指定します。 -
Rake
:: PackageTask # zip _ command=(command) (37228.0) -
zip コマンドとして使用するコマンドを設定します。
zip コマンドとして使用するコマンドを設定します。
@param command コマンドを文字列で指定します。 -
Shell
# find _ system _ command(command) (37210.0) -
@todo
@todo -
Shell
:: Filter # find _ system _ command(command) (37210.0) -
@todo
@todo -
Shell
# command _ processor -> Shell :: CommandProcessor (37207.0) -
@todo
@todo -
Rake
:: PackageTask # tar _ command=(command) (36928.0) -
tar コマンドとして使用するコマンドを設定します。
tar コマンドとして使用するコマンドを設定します。
@param command コマンドを文字列で指定します。 -
Gem
:: Command # program _ name=(name) (36904.0) -
コマンドラインで実行するときに使用するプログラム名をセットします。
コマンドラインで実行するときに使用するプログラム名をセットします。
@param name プログラム名を指定します。 -
Kernel
# cc _ command(opt = "") -> String (36607.0) -
実際にコンパイルする際に使用するコマンドを返します。
実際にコンパイルする際に使用するコマンドを返します。
@param opt コンパイラに与える追加のコマンドライン引数を指定します。
@see RbConfig.expand -
Kernel
# cpp _ command(outfile , opt = "") -> String (36607.0) -
実際にプリプロセッサを実行する際に使用するコマンドを返します。
実際にプリプロセッサを実行する際に使用するコマンドを返します。
@param outfile 出力ファイルの名前を指定します。
@param opt プリプロセッサに与える追加のコマンドライン引数を指定します。
@see RbConfig.expand -
Kernel
# link _ command(ldflags , opt = "" , libpath = $ DEFLIBPATH| $ LIBPATH) -> String (36607.0) -
実際にリンクする際に使用するコマンドを返します。
実際にリンクする際に使用するコマンドを返します。
@param ldflags LDFLAGS に追加する値を指定します。
@param opt LIBS に追加する値を指定します。
@param libpath LIBPATH に指定する値を指定します。
@see RbConfig.expand -
Rake
:: PackageTask # tar _ command -> String (36607.0) -
tar コマンドとして使用するコマンドを返します。
tar コマンドとして使用するコマンドを返します。
デフォルトは 'tar' です。 -
Rake
:: PackageTask # zip _ command -> String (36607.0) -
zip コマンドとして使用するコマンドを返します。
zip コマンドとして使用するコマンドを返します。
デフォルトは 'zip' です。 -
Gem
:: Command # program _ name -> String (36604.0) -
コマンドラインで実行するときに使用するプログラム名を返します。
コマンドラインで実行するときに使用するプログラム名を返します。 -
Gem
:: CommandManager # process _ args(args) -> () (36604.0) -
引数 args を処理して gem コマンドを実行するために必要な処理を行います。
引数 args を処理して gem コマンドを実行するために必要な処理を行います。
@param args コマンドラインから受け取った引数を指定します。 -
IRB
:: ExtendCommandBundle # install _ alias _ method(to , from , override = NO _ OVERRIDE) (36604.0) -
メソッドのエイリアスを定義します。ライブラリ内部で使用します。
メソッドのエイリアスを定義します。ライブラリ内部で使用します。
@param to 新しいメソッド名を Symbol か文字列で指定します。
@param from 元のメソッド名を Symbol か文字列で指定します。
@param override 新しいメソッド名が定義済みであった場合にそのメソッドを
上書きするかどうかを
IRB::ExtendCommandBundle::NO_OVERRIDE、
IRB::ExtendCommandBundle::OVERRIDE_PRIVATE_... -
Shell
:: CommandProcessor # transact { . . . } -> object (36322.0) -
ブロック中で shell を self として実行します。
ブロック中で shell を self として実行します。
例:
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact{
system("ls", "-l") | head > STDOUT
# transact の中では、
# sh.system("ls", "-l") | sh.head > STDOUT と同じとなる。
} -
Gem
:: Command # handle _ options(args) (36304.0) -
与えられた引数のリストをパースして結果を記録します。
与えられた引数のリストをパースして結果を記録します。
@param args 引数のリストを指定します。 -
Gem
:: Command # handles?(args) -> bool (36304.0) -
与えられた引数リストを処理することが出来れば真を返します。処理できない場合は偽を返します。
与えられた引数リストを処理することが出来れば真を返します。処理できない場合は偽を返します。
@param args 引数リストを指定子明日。 -
Gem
:: Commands :: DependencyCommand # find _ gems(name , source _ index) -> Hash (36304.0) -
与えられた Gem の名前をインデックスから検索します。
与えられた Gem の名前をインデックスから検索します。
@param name Gem の名前を指定します。
@param source_index Gem::SourceIndex のインスタンスを指定します。
@see Gem::SourceIndex#search -
Gem
:: Commands :: DependencyCommand # find _ reverse _ dependencies(spec) -> Array (36304.0) -
与えられた Gem スペックに依存する Gem のリストを返します。
与えられた Gem スペックに依存する Gem のリストを返します。
@param spec Gem::Specification のインスタンスを指定します。 -
Shell
:: CommandProcessor # expand _ path(path) -> String (36304.0) -
Fileクラスにある同名のクラスメソッドと同じです.
Fileクラスにある同名のクラスメソッドと同じです.
@param path ファイル名を表す文字列を指定します。
@see File.expand_path -
Gem
:: Commands :: BuildCommand # execute -> () (36004.0) -
コマンドを実行します。
コマンドを実行します。 -
Gem
:: Commands :: DependencyCommand # execute -> () (36004.0) -
コマンドを実行します。
コマンドを実行します。 -
Gem
:: Commands :: DependencyCommand # print _ dependencies(spec , level = 0) -> String (36004.0) -
依存関係を表す文字列を返します。
依存関係を表す文字列を返します。
@param spec Gem::Specification のインスタンスを指定します。
@param level 依存関係の深さを指定します。 -
IRB
:: ExtendCommand :: IrbCommand # execute(*obj) -> IRB :: Irb (36004.0) -
新しいサブ irb インタプリタを起動します。
新しいサブ irb インタプリタを起動します。
@param obj 新しいサブ irb インタプリタで self にするオブジェクトを指定
します。省略した場合は irb を起動したときの main オブジェク
トを self にします。 -
Gem
:: CommandManager # [](command _ name) -> Gem :: Command | nil (28228.0) -
引数で指定されたコマンド名に対応するクラスのインスタンスを返します。
引数で指定されたコマンド名に対応するクラスのインスタンスを返します。
@param command_name コマンド名を文字列で指定します。 -
Shell
:: CommandProcessor # append(to , filter) -> Shell :: AppendFile | Shell :: AppendIO (27904.0) -
@todo
@todo
@param to 文字列か IO を指定します。
@param filter Shell::Filter のインスタンスを指定します。 -
Shell
:: CommandProcessor # concat(*jobs) -> Shell :: Concat (27604.0) -
@todo
@todo -
Shell
:: CommandProcessor # dirname(filename) -> String (27604.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@see File.dirname -
Shell
:: CommandProcessor # lstat(filename) -> File :: Stat (27604.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@see File.lstat -
Shell
:: CommandProcessor # stat(filename) -> File :: Stat (27604.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@see File.stat -
Shell
:: CommandProcessor # truncate(path , length) -> 0 (27604.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param path パスを表す文字列を指定します。
@param length 変更したいサイズを整数で与えます。
@see File.truncate -
Shell
:: CommandProcessor # cat(*files) -> Shell :: Filter (27340.0) -
実行すると, それらを内容とする Filter オブジェクトを返します.
実行すると, それらを内容とする 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(file + ".tee") >> "al... -
Gem
:: Command # defaults _ str -> String (27322.0) -
このメソッドはサブクラスで再定義されます。 コマンドのオプションで使用するデフォルト値を表示するために使用する文字列を返します。
このメソッドはサブクラスで再定義されます。
コマンドのオプションで使用するデフォルト値を表示するために使用する文字列を返します。
@see Gem::Command#arguments -
Gem
:: Command # add _ extra _ args(args) -> Array (27304.0) -
$HOME/.gemrc から読み込んだ引数を追加します。
$HOME/.gemrc から読み込んだ引数を追加します。
@param args 追加する引数を配列で指定します。 -
Gem
:: Command # add _ option(*opts) {|value , options| . . . } (27304.0) -
コマンドに対するコマンドラインオプションとハンドラを追加します。
コマンドに対するコマンドラインオプションとハンドラを追加します。
ブロックには、コマンドライン引数の値とそのオプションが渡されます。
オプションはハッシュになっています。
@param opts オプションを指定します。
@see OptionParser#make_switch -
Gem
:: Command # arguments -> String (27304.0) -
このメソッドはサブクラスで再定義されます。 コマンドが取る引数の説明を表示するために使用します。
このメソッドはサブクラスで再定義されます。
コマンドが取る引数の説明を表示するために使用します。
サブクラスで実装する場合は、一つの引数につき一行で、左揃えの文字列を返すようにしてください。 -
Gem
:: Command # defaults -> Hash (27304.0) -
デフォルトのオプションを返します。
デフォルトのオプションを返します。 -
Gem
:: Command # defaults=(hash) (27304.0) -
コマンドで使用するデフォルトのオプションをセットします。
コマンドで使用するデフォルトのオプションをセットします。
@param hash オプションをハッシュで指定します。 -
Gem
:: Command # get _ all _ gem _ names -> Array (27304.0) -
コマンドラインで与えられた Gem の名前を全て取得して返します。
コマンドラインで与えられた Gem の名前を全て取得して返します。
@raise Gem::CommandLineError コマンドライン引数から Gem の名前を取得できない場合に発生します。 -
Gem
:: Command # get _ one _ gem _ name -> String (27304.0) -
コマンドラインで与えられた Gem の名前を一つ取得して返します。
コマンドラインで与えられた Gem の名前を一つ取得して返します。
@raise Gem::CommandLineError コマンドライン引数から Gem の名前を一つだけ取得できない場合に発生します。 -
Gem
:: Command # get _ one _ optional _ argument -> String (27304.0) -
コマンドラインからオプショナルな引数を取得して返します。
コマンドラインからオプショナルな引数を取得して返します。
@return 一つ以上、指定した場合は最初の値を返します。一つも指定していない場合は nil を返します。 -
Gem
:: Command # show _ lookup _ failure(gem _ name , version , errors = nil) -> () (27304.0) -
Gem が見つからなかった場合、メッセージを表示するために使用するメソッドです。
Gem が見つからなかった場合、メッセージを表示するために使用するメソッドです。
@param gem_name Gem の名前を指定します。
@param version Gem のバージョンを指定します。
@param errors Gem が見つからなかった理由を表すオブジェクトを格納した配列を指定します。 -
Gem
:: Command # summary -> String (27304.0) -
コマンドの短い説明を返します。
コマンドの短い説明を返します。 -
Gem
:: Command # summary=(description) (27304.0) -
コマンドの短い説明をセットします。
コマンドの短い説明をセットします。
@param description コマンドの短い説明を指定します。 -
Gem
:: Command # usage -> String (27304.0) -
このメソッドはサブクラスで再定義されます。 個々の gem コマンドの使用方法を返します。
このメソッドはサブクラスで再定義されます。
個々の gem コマンドの使用方法を返します。 -
Gem
:: CommandManager # run(args) -> () (27304.0) -
引数 args を処理して gem コマンドを実行中のエラーを捕捉します。
引数 args を処理して gem コマンドを実行中のエラーを捕捉します。
@param args コマンドラインから受け取った引数を指定します。 -
IRB
:: ExtendCommandBundle # irb _ load(*opts , &b) -> nil (27304.0) -
現在の irb に関する IRB::Context に対して irb_load コマンドを実行 します。
現在の irb に関する IRB::Context に対して irb_load コマンドを実行
します。
@see IRB::ExtendCommand::Load#execute -
Shell
:: BuiltInCommand # active? -> true (27304.0) -
@todo
@todo -
Shell
:: BuiltInCommand # wait? -> false (27304.0) -
@todo
@todo -
Shell
:: CommandProcessor # atime(filename) -> Time (27304.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列か IO オブジェクトを指定します。
@see File.atime -
Shell
:: CommandProcessor # basename(filename , suffix = "") -> String (27304.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@param suffix サフィックスを文字列で与えます。'.*' という文字列を与えた場合、'*' はワイルドカードとして働き
'.' を含まない任意の文字列にマッチします。
@see File.basename -
Shell
:: CommandProcessor # chardev?(file) -> bool (27304.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列か IO オブジェクトを指定します。
@see FileTest.#chardev? -
Shell
:: CommandProcessor # executable?(file) -> bool (27304.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#executable? -
Shell
:: CommandProcessor # executable _ real?(file) -> bool (27304.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#executable_real? -
Shell
:: CommandProcessor # finish _ all _ jobs (27304.0) -
@todo
@todo -
Shell
:: CommandProcessor # foreach(path = nil , &block) -> () (27304.0) -
pathがファイルなら, File#foreach pathがディレクトリなら, Dir#foreach の動作をします。
pathがファイルなら, File#foreach
pathがディレクトリなら, Dir#foreach
の動作をします。
@param path ファイルもしくはディレクトリのパスを文字列で指定します。
使用例
require 'shell'
Shell.verbose = false
sh = Shell.new
sh.foreach("/tmp"){|f|
puts f
} -
Shell
:: CommandProcessor # identical? (27304.0) -
@todo
@todo -
Shell
:: CommandProcessor # readable?(file) -> bool (27304.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#readable? -
Shell
:: CommandProcessor # readable _ real?(file) -> bool (27304.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#readable_real? -
Shell
:: CommandProcessor # readlink(path) -> String (27304.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param path シンボリックリンクを表す文字列を指定します。
@see File.readlink -
Shell
:: CommandProcessor # rehash -> {} (27304.0) -
登録されているシステムコマンドの情報をクリアします。 通常、使うことはありません。
登録されているシステムコマンドの情報をクリアします。
通常、使うことはありません。 -
Shell
:: CommandProcessor # rename(from , to) -> 0 (27304.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param from ファイルの名前を文字列で与えます。
@param to 新しいファイル名を文字列で与えます。
@see File.rename -
Shell
:: CommandProcessor # world _ readable? (27304.0) -
@todo
@todo -
Shell
:: CommandProcessor # world _ writable? (27304.0) -
@todo
@todo -
Shell
:: CommandProcessor # writable?(file) -> bool (27304.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#writable? -
Shell
:: CommandProcessor # writable _ real?(file) -> bool (27304.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#writable_real? -
Shell
:: SystemCommand # active? -> bool (27304.0) -
@todo
@todo -
Shell
:: SystemCommand # each(rs = nil) {|line| . . . } (27304.0) -
@todo
@todo
@param rs -
Shell
:: SystemCommand # start -> () (27304.0) -
@todo
@todo -
Shell
:: SystemCommand # start _ export (27304.0) -
@todo
@todo -
Shell
:: SystemCommand # start _ import -> () (27304.0) -
@todo
@todo -
Shell
:: SystemCommand # super _ each -> () (27304.0) -
@todo
@todo
Shell::Filter#each です。 -
Shell
:: SystemCommand # terminate -> () (27304.0) -
@todo
@todo -
Shell
:: SystemCommand # wait? -> bool (27304.0) -
@todo
@todo -
IRB
:: ExtendCommand :: ChangeWorkspace # execute(*obj) -> obj (27004.0) -
irb の self を obj で指定したオブジェクトに設定します。self に設定され たオブジェクトを返します。
irb の self を obj で指定したオブジェクトに設定します。self に設定され
たオブジェクトを返します。
@param obj 任意のオブジェクトを指定できます。複数指定した場合は先頭のオ
ブジェクトのみが設定されます。 -
Shell
:: CommandProcessor # system(command , *opts) -> Shell :: SystemCommand (19309.0) -
command を実行する.
command を実行する.
@param 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
:: CommandProcessor # [](command , file1 , file2 = nil) -> bool | Time | Integer | nil (18628.0) -
Kernel.#test や FileTest のメソッドに処理を委譲します。
Kernel.#test や FileTest のメソッドに処理を委譲します。
@param command 数値、またはサイズが 1 の文字列の場合は Kernel.#test に処理委譲します。
2 文字以上の文字列の場合は FileTest のメソッドとして実行します。
@param file1 文字列でファイルへのパスを指定します。
@param file2 文字列でファイルへのパスを指定します。
require 'shell'
Shell.verbose = false
sh = Shell.new
begin
sh.m... -
Shell
:: CommandProcessor # test(command , file1 , file2 = nil) -> bool | Time | Integer | nil (18628.0) -
Kernel.#test や FileTest のメソッドに処理を委譲します。
Kernel.#test や FileTest のメソッドに処理を委譲します。
@param command 数値、またはサイズが 1 の文字列の場合は Kernel.#test に処理委譲します。
2 文字以上の文字列の場合は FileTest のメソッドとして実行します。
@param file1 文字列でファイルへのパスを指定します。
@param file2 文字列でファイルへのパスを指定します。
require 'shell'
Shell.verbose = false
sh = Shell.new
begin
sh.m... -
Gem
:: VersionOption # add _ platform _ option(task = command , *wrap) (18625.0) -
option parser に対して --platform オプションを追加します。
option parser に対して --platform オプションを追加します。
@param task コマンド名を指定します。デフォルト値はインクルードされる側のクラスで指定されます。
@param wrap Gem::Command#add_option に渡すその他のオプションを指定します。