ライブラリ
-
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
/ 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 (9)
-
shell
/ builtin-command (2) -
shell
/ command-processor (68) -
shell
/ filter (14) -
shell
/ process-controller (5) -
shell
/ system-command (15) - un (1)
クラス
-
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 (9)
-
Shell
:: BuiltInCommand (2) -
Shell
:: CommandProcessor (68) -
Shell
:: Filter (14) -
Shell
:: ProcessController (5) -
Shell
:: SystemCommand (15)
モジュール
-
Gem
:: VersionOption (2) -
IRB
:: ExtendCommandBundle (5) - Kernel (9)
キーワード
- < (1)
- > (1)
- >> (1)
- [] (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 (1)
-
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)
- help (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 (3)
- 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)
-
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 (1)
- terminate (1)
-
terminate
_ job (1) - test (3)
-
to
_ a (1) -
to
_ s (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) - | (1)
検索結果
先頭5件
-
Gem
:: Command # command -> String (90607.0) -
コマンドの名前を返します。
コマンドの名前を返します。 -
Shell
:: SystemCommand # command -> String (90607.0) -
@todo
@todo
コマンド名を返します。 -
Gem
:: Commands :: DependencyCommand # find _ reverse _ dependencies(spec) -> Array (81604.0) -
与えられた Gem スペックに依存する Gem のリストを返します。
与えられた Gem スペックに依存する Gem のリストを返します。
@param spec Gem::Specification のインスタンスを指定します。 -
Gem
:: CommandManager # find _ command(command _ name) -> Gem :: Command | nil (74149.0) -
登録されているコマンドからマッチしたものを返します。
登録されているコマンドからマッチしたものを返します。
@param command_name コマンド名を文字列で指定します。
@return Gem::Command のサブクラスのインスタンスを返します。
@raise RuntimeError マッチする可能性のあるコマンドが複数ある場合に発生します。
また、マッチするコマンドが無かった場合にも発生します。 -
Gem
:: CommandManager # find _ command _ possibilities(command _ name) -> Array (73528.0) -
登録されているコマンドでマッチする可能性のあるものを返します。
登録されているコマンドでマッチする可能性のあるものを返します。
@param command_name コマンド名を文字列で指定します。 -
Shell
:: CommandProcessor # find _ system _ command(command) (73510.0) -
@todo
@todo -
Gem
:: Commands :: DependencyCommand # find _ gems(name , source _ index) -> Hash (63604.0) -
与えられた Gem の名前をインデックスから検索します。
与えられた Gem の名前をインデックスから検索します。
@param name Gem の名前を指定します。
@param source_index Gem::SourceIndex のインスタンスを指定します。
@see Gem::SourceIndex#search -
Gem
:: Commands :: DependencyCommand # print _ dependencies(spec , level = 0) -> String (63304.0) -
依存関係を表す文字列を返します。
依存関係を表す文字列を返します。
@param spec Gem::Specification のインスタンスを指定します。
@param level 依存関係の深さを指定します。 -
Shell
# find _ system _ command(command) (55510.0) -
@todo
@todo -
Shell
:: Filter # find _ system _ command(command) (55510.0) -
@todo
@todo -
Gem
:: CommandManager # register _ command(command _ name) -> false (55228.0) -
コマンドを自身に登録します。
コマンドを自身に登録します。
@param command_name コマンド名をシンボルで指定します。 -
Gem
:: CommandManager # command _ names -> Array (54607.0) -
登録されているコマンド名の配列を返します。
登録されているコマンド名の配列を返します。 -
Gem
:: Commands :: DependencyCommand # arguments -> String (54304.0) -
引数の説明を表す文字列を返します。
引数の説明を表す文字列を返します。 -
Gem
:: Commands :: WhichCommand # find _ paths(package _ name , dirs) -> Array (54304.0) -
dirs から package_name という名前を持つファイルを探索します。
dirs から package_name という名前を持つファイルを探索します。
以下の拡張子を持つファイルが対象です。
%w[.rb .rbw .so .dll .bundle]
@param package_name ファイルの名前を指定します。
@param dirs 探索するディレクトリを文字列の配列で指定します。 -
IRB
:: ExtendCommandBundle # irb _ context -> IRB :: Context (45604.0) -
現在の irb に関する IRB::Context を返します。
現在の irb に関する IRB::Context を返します。 -
Shell
:: SystemCommand # name -> String (45307.0) -
@todo
@todo
コマンド名を返します。 -
Gem
:: Commands :: BuildCommand # 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 が指定されている場合に発生します。 -
IRB
:: ExtendCommandBundle # install _ alias _ method(to , from , override = NO _ OVERRIDE) (45304.0) -
メソッドのエイリアスを定義します。ライブラリ内部で使用します。
メソッドのエイリアスを定義します。ライブラリ内部で使用します。
@param to 新しいメソッド名を Symbol か文字列で指定します。
@param from 元のメソッド名を Symbol か文字列で指定します。
@param override 新しいメソッド名が定義済みであった場合にそのメソッドを
上書きするかどうかを
IRB::ExtendCommandBundle::NO_OVERRIDE、
IRB::ExtendCommandBundle::OVERRIDE_PRIVATE_... -
Gem
:: Commands :: DependencyCommand # execute -> () (45004.0) -
コマンドを実行します。
コマンドを実行します。 -
IRB
:: ExtendCommand :: IrbCommand # execute(*obj) -> IRB :: Irb (45004.0) -
新しいサブ irb インタプリタを起動します。
新しいサブ irb インタプリタを起動します。
@param obj 新しいサブ irb インタプリタで self にするオブジェクトを指定
します。省略した場合は irb を起動したときの main オブジェク
トを self にします。 -
Rake
:: PackageTask # tar _ command=(command) (37228.0) -
tar コマンドとして使用するコマンドを設定します。
tar コマンドとして使用するコマンドを設定します。
@param command コマンドを文字列で指定します。 -
Rake
:: PackageTask # zip _ command=(command) (37228.0) -
zip コマンドとして使用するコマンドを設定します。
zip コマンドとして使用するコマンドを設定します。
@param command コマンドを文字列で指定します。 -
Shell
# command _ processor -> Shell :: CommandProcessor (37207.0) -
@todo
@todo -
Shell
:: CommandProcessor # append(to , filter) -> Shell :: AppendFile | Shell :: AppendIO (36904.0) -
@todo
@todo
@param to 文字列か IO を指定します。
@param filter Shell::Filter のインスタンスを指定します。 -
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' です。 -
IRB
:: ExtendCommand :: Nop # irb _ context -> IRB :: Context (36604.0) -
irb の現在の設定(IRB::Context)を返します。
irb の現在の設定(IRB::Context)を返します。 -
Gem
:: Command # handle _ options(args) (36304.0) -
与えられた引数のリストをパースして結果を記録します。
与えられた引数のリストをパースして結果を記録します。
@param args 引数のリストを指定します。 -
Gem
:: Command # handles?(args) -> bool (36304.0) -
与えられた引数リストを処理することが出来れば真を返します。処理できない場合は偽を返します。
与えられた引数リストを処理することが出来れば真を返します。処理できない場合は偽を返します。
@param args 引数リストを指定子明日。 -
Gem
:: Commands :: BuildCommand # load _ gemspecs(filename) -> Array (36304.0) -
gemspec ファイルをロードします。
gemspec ファイルをロードします。
@param filename ファイル名を指定します。 -
Gem
:: Commands :: BuildCommand # usage -> String (36304.0) -
使用方法を表す文字列を返します。
使用方法を表す文字列を返します。 -
Gem
:: Commands :: BuildCommand # yaml?(filename) -> bool (36304.0) -
与えられたファイル名を持つファイルが yaml ファイルである場合に真を返します。
与えられたファイル名を持つファイルが yaml ファイルである場合に真を返します。
@param filename ファイル名を指定します。 -
Gem
:: Commands :: LockCommand # spec _ path(gem _ full _ name) -> String (36304.0) -
指定された Gem パッケージの gemspec ファイルのフルパスを返します。
指定された Gem パッケージの gemspec ファイルのフルパスを返します。
@param gem_full_name Gem パッケージの名前を指定します。 -
Gem
:: Commands :: UnpackCommand # get _ path(gemname , version _ req) -> String | nil (36304.0) -
引数で指定された条件にマッチする Gem パッケージを保存しているパスを返します。
引数で指定された条件にマッチする Gem パッケージを保存しているパスを返します。
@param gemname Gem パッケージの名前を指定します。
@param version_req バージョンの満たすべき条件を文字列で指定します。 -
Gem
:: Commands :: UpdateCommand # do _ rubygems _ update(version) (36304.0) -
RubyGems 自体を更新します。
RubyGems 自体を更新します。 -
Gem
:: Commands :: UpdateCommand # which _ to _ update(highest _ installed _ gems , gem _ names) -> Array (36304.0) -
更新が必要な Gem のリストを返します。
更新が必要な Gem のリストを返します。 -
IRB
:: ExtendCommandBundle # irb _ load(*opts , &b) -> nil (36304.0) -
現在の irb に関する IRB::Context に対して irb_load コマンドを実行 します。
現在の irb に関する IRB::Context に対して irb_load コマンドを実行
します。
@see IRB::ExtendCommand::Load#execute -
Shell
:: CommandProcessor # expand _ path(path) -> String (36304.0) -
Fileクラスにある同名のクラスメソッドと同じです.
Fileクラスにある同名のクラスメソッドと同じです.
@param path ファイル名を表す文字列を指定します。
@see File.expand_path -
Gem
:: Commands :: BuildCommand # execute -> () (36004.0) -
コマンドを実行します。
コマンドを実行します。 -
Gem
:: Commands :: WhichCommand # gem _ paths(spec) -> Array (36004.0) -
与えられた Gem::Specification のインスタンスからその Gem が require するファイルのあるディレクトリをまとめて返します。
与えられた Gem::Specification のインスタンスからその Gem が
require するファイルのあるディレクトリをまとめて返します。
@param spec Gem::Specification のインスタンスを指定します。 -
IRB
:: ExtendCommand :: Foreground # execute(*obj) -> IRB :: Irb (36004.0) -
指定したサブ irb に移動します。
指定したサブ irb に移動します。
@param obj 移動するサブ irb を識別する以下のいずれかのオブジェクトを指定します。
* irb インタプリタ番号
* irb オブジェクト
* スレッド ID
* 各インタプリタの self (「irb(obj)」で起動した時の obj) -
IRB
:: ExtendCommandBundle # irb _ exit(ret = 0) -> object (36004.0) -
irb を終了します。ret で指定したオブジェクトを返します。
irb を終了します。ret で指定したオブジェクトを返します。
@param ret 戻り値を指定します。
ユーザが直接使用するものではありません。 -
IRB
:: ExtendCommandBundle # irb _ require(*opts , &b) -> bool (36004.0) -
現在の irb に関する IRB::Context に対して irb_require コマンドを 実行します。
現在の irb に関する IRB::Context に対して irb_require コマンドを
実行します。
@see IRB::ExtendCommand::Require#execute -
Gem
:: Command # merge _ options(new _ options) -> Hash (27604.0) -
与えられたオプションとデフォルトのオプションをマージします。 しかし、新しいオプションに同一のキーがあってもデフォルトのオプションは変更されません。
与えられたオプションとデフォルトのオプションをマージします。
しかし、新しいオプションに同一のキーがあってもデフォルトのオプションは変更されません。
@param new_options 新しいコマンドオプションをハッシュで指定します。 -
Gem
:: Command # program _ name=(name) (27604.0) -
コマンドラインで実行するときに使用するプログラム名をセットします。
コマンドラインで実行するときに使用するプログラム名をセットします。
@param name プログラム名を指定します。 -
Shell
:: CommandProcessor # basename(filename , suffix = "") -> String (27604.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@param suffix サフィックスを文字列で与えます。'.*' という文字列を与えた場合、'*' はワイルドカードとして働き
'.' を含まない任意の文字列にマッチします。
@see File.basename -
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
:: SystemCommand # input=(inp) (27604.0) -
@todo
@todo -
Shell
:: CommandProcessor # transact { . . . } -> object (27322.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 # add _ option(*opts) {|value , options| . . . } (27304.0) -
コマンドに対するコマンドラインオプションとハンドラを追加します。
コマンドに対するコマンドラインオプションとハンドラを追加します。
ブロックには、コマンドライン引数の値とそのオプションが渡されます。
オプションはハッシュになっています。
@param opts オプションを指定します。
@see OptionParser#make_switch -
Gem
:: Command # arguments -> String (27304.0) -
このメソッドはサブクラスで再定義されます。 コマンドが取る引数の説明を表示するために使用します。
このメソッドはサブクラスで再定義されます。
コマンドが取る引数の説明を表示するために使用します。
サブクラスで実装する場合は、一つの引数につき一行で、左揃えの文字列を返すようにしてください。 -
Gem
:: Command # begins?(long , short) -> bool (27304.0) -
long が short で始まる文字列である場合真を返します。そうでない場合は偽を返します。
long が short で始まる文字列である場合真を返します。そうでない場合は偽を返します。
@param long 長いコマンドラインオプションを指定します。
@param short 短いコマンドラインオプションを指定します。 -
Gem
:: Command # description -> String (27304.0) -
このメソッドはサブクラスで再定義されます。 コマンドが実行することを説明する文字列を返します。
このメソッドはサブクラスで再定義されます。
コマンドが実行することを説明する文字列を返します。 -
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 # invoke(*args) (27304.0) -
与えられた引数を使用してコマンドを呼び出します。
与えられた引数を使用してコマンドを呼び出します。
@param args 引数のリストです。 -
Gem
:: Command # options -> Hash (27304.0) -
コマンドで使用するオプションを返します。
コマンドで使用するオプションを返します。 -
Gem
:: Command # program _ name -> String (27304.0) -
コマンドラインで実行するときに使用するプログラム名を返します。
コマンドラインで実行するときに使用するプログラム名を返します。 -
Gem
:: Command # remove _ option(name) (27304.0) -
与えられた名前に一致するコマンドラインオプションを削除します。
与えられた名前に一致するコマンドラインオプションを削除します。
@param name 削除したいコマンドラインオプションの名前を指定します。 -
Gem
:: Command # when _ invoked { . . . } -> Proc (27304.0) -
コマンドが実行されたときに評価するブロックを登録します。
コマンドが実行されたときに評価するブロックを登録します。
通常のコマンド呼び出しは、そのコマンドクラスの execute メソッドを実行するだけです。
このメソッドでブロックを登録すると、通常の呼び出しを上書きすることができます。
これはテストメソッドで正しくコマンドの呼び出しが実行されたことを確認するのに使用することが出来ます。 -
Gem
:: CommandManager # run(args) -> () (27304.0) -
引数 args を処理して gem コマンドを実行中のエラーを捕捉します。
引数 args を処理して gem コマンドを実行中のエラーを捕捉します。
@param args コマンドラインから受け取った引数を指定します。 -
IRB
:: ExtendCommand :: Help # execute(*names) -> nil (27304.0) -
RI から Ruby のドキュメントを参照します。
RI から Ruby のドキュメントを参照します。
irb(main):001:0> help String#match
...
@param names 参照したいクラス名やメソッド名などを文字列で指定します。
names を指定しなかった場合は、RI を対話的なモードで起動します。メソッド
名などを入力する事でドキュメントの検索が行えます。入力のタブ補完をする
事ができます。また、空行を入力する事で irb のプロンプトに戻る事ができま
す。
irb(main):001:0> help
Enter the method name you want to look... -
IRB
:: ExtendCommand :: Jobs # execute -> IRB :: JobManager (27304.0) -
サブ irb のリストを返します。
サブ irb のリストを返します。 -
IRB
:: ExtendCommand :: Load # execute(file _ name , priv = nil) -> nil (27304.0) -
ファイル path を Ruby スクリプトとみなし、現在の irb インタプリタ上で実 行します。
ファイル path を Ruby スクリプトとみなし、現在の irb インタプリタ上で実
行します。
Kernel.#load と異なり、path の内容を irb で一行ずつタイプしたかの
ように、irb 上で一行ずつ評価されます。
@param file_name ファイル名を文字列で指定します。
@param priv 真を指定した場合は実行は内部的に生成される無名モジュール上
で行われ、グローバルな名前空間を汚染しません。
@raise LoadError 読み込みに失敗した場合に発生します。 -
IRB
:: ExtendCommand :: Require # execute(file _ name) -> bool (27304.0) -
ファイル file_name を現在の irb インタプリタ上で実行します。
ファイル file_name を現在の irb インタプリタ上で実行します。
file_name に Ruby スクリプトを指定した場合は、Kernel.#require と異
なり、file_name の内容を irb で一行ずつタイプしたかのように、irb 上で一
行ずつ評価されます。require に成功した場合は true を、そうでない場合は
false を返します。
拡張ライブラリ(*.so,*.o,*.dll など)を指定した場合は単純に require され
ます。
@param file_name ファイル名を文字列で指定します。 -
IRB
:: ExtendCommand :: Source # execute(file _ name) -> nil (27304.0) -
現在の irb インタプリタ上で、 Ruby スクリプト path を評価します。
現在の irb インタプリタ上で、 Ruby スクリプト path を評価します。
path の内容を irb で一行ずつタイプしたかのように、irb 上で一行ずつ評価
されます。$" は更新されず、何度でも実行し直す事ができます。
@param file_name ファイル名を文字列で指定します。 -
Shell
:: CommandProcessor # check _ point (27304.0) -
@todo
@todo -
Shell
:: CommandProcessor # chown(owner , group , *filename) -> Integer (27304.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param owner chown(2) と同様に数値で指定します。nil または -1 を指定することで、オーナーを現在のままにすることができます。
@param group chown(2) と同様に数値で指定します。nil または -1 を指定することで、グループを現在のままにすることができます。
@param filename ファイル名を表す文字列を指定します。
@see File.chown -
Shell
:: CommandProcessor # finish _ all _ jobs (27304.0) -
@todo
@todo -
Shell
:: CommandProcessor # grpowned?(file) -> bool (27304.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列か IO オブジェクトを指定します。
@see FileTest.#grpowned? -
Shell
:: CommandProcessor # identical? (27304.0) -
@todo
@todo -
Shell
:: CommandProcessor # join(*item) -> String (27304.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param item 連結したいディレクトリ名やファイル名を文字列で与えます。
@see File.join -
Shell
:: CommandProcessor # link(old , new) -> 0 (27304.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param old ファイル名を表す文字列を指定します。
@param new ファイル名を表す文字列を指定します。
@see File.link -
Shell
:: CommandProcessor # notify(*opts) { . . . } -> () (27304.0) -
@todo
@todo -
Shell
:: CommandProcessor # open(path , mode) -> File | Dir (27304.0) -
path がファイルなら、 File.open path がディレクトリなら、 Dir.open の動作をします。
path がファイルなら、 File.open path がディレクトリなら、 Dir.open の動作をします。
@param path 開きたいパスを指定します。
@param mode アクセスモードを指定します。path がディレクトリの場合は無視されます。
@see File.open, Dir.open -
Shell
:: CommandProcessor # owned?(file) -> bool (27304.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列か IO オブジェクトを指定します。
@see FileTest.#owned? -
Shell
:: CommandProcessor # readlink(path) -> String (27304.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param path シンボリックリンクを表す文字列を指定します。
@see File.readlink -
Shell
:: CommandProcessor # rename(from , to) -> 0 (27304.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param from ファイルの名前を文字列で与えます。
@param to 新しいファイル名を文字列で与えます。
@see File.rename -
Shell
:: CommandProcessor # symlink(old , new) -> 0 (27304.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param old ファイル名を表す文字列を指定します。
@param new シンボリックリンクを表す文字列を指定します。
@see File.symlink -
Shell
:: CommandProcessor # symlink?(file) -> bool (27304.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列を指定します。
@see FileTest.#symlink? -
Shell
:: CommandProcessor # truncate(path , length) -> 0 (27304.0) -
File クラスにある同名のクラスメソッドと同じです.
File クラスにある同名のクラスメソッドと同じです.
@param path パスを表す文字列を指定します。
@param length 変更したいサイズを整数で与えます。
@see File.truncate -
Shell
:: CommandProcessor # unlink(path) -> self (27304.0) -
path がファイルなら File.unlink、path がディレクトリなら Dir.unlink の動作をします。
path がファイルなら File.unlink、path がディレクトリなら Dir.unlink の動作をします。
@param path 削除したいパスを指定します。
@see File.unlink, Dir.unlink -
Shell
:: SystemCommand # notify(*opts) -> String (27304.0) -
@todo
@todo
@param opts
@see Shell#notify -
Shell
:: SystemCommand # notify(*opts) {|message| . . . } -> String (27304.0) -
@todo
@todo
@param opts
@see Shell#notify -
Shell
:: SystemCommand # terminate -> () (27304.0) -
@todo
@todo -
IRB
:: ExtendCommand :: ChangeWorkspace # execute(*obj) -> obj (27004.0) -
irb の self を obj で指定したオブジェクトに設定します。self に設定され たオブジェクトを返します。
irb の self を obj で指定したオブジェクトに設定します。self に設定され
たオブジェクトを返します。
@param obj 任意のオブジェクトを指定できます。複数指定した場合は先頭のオ
ブジェクトのみが設定されます。 -
IRB
:: ExtendCommand :: CurrentWorkingWorkspace # execute(*obj) -> obj (27004.0) -
irb の self を返します。
irb の self を返します。
@param obj 使用しません。 -
IRB
:: ExtendCommand :: Kill # execute(*obj) -> object (27004.0) -
指定したサブ irb を停止します。
指定したサブ irb を停止します。
@param obj 停止するサブ irb を識別する以下のいずれかのオブジェクトを指定します。
* irb インタプリタ番号
* irb オブジェクト
* スレッド ID
* 各インタプリタの self (「irb(obj)」で起動した時の obj) -
IRB
:: ExtendCommand :: Nop # execute(*opts) -> () (27004.0) -
何もしません。サブクラスでオーバーライドして使用します。
何もしません。サブクラスでオーバーライドして使用します。
@param opts irb 中でコマンドに渡す引数を指定します。 -
IRB
:: ExtendCommand :: PopWorkspace # execute(*obj) -> [IRB :: WorkSpace] (27004.0) -
UNIX シェルコマンドの popd と同じです。
UNIX シェルコマンドの popd と同じです。
@param obj 使用しません。 -
IRB
:: ExtendCommand :: PushWorkspace # execute(*obj) -> [IRB :: WorkSpace] (27004.0) -
UNIX シェルコマンドの pushd と同じです。
UNIX シェルコマンドの pushd と同じです。
@param obj IRB::WorkSpace オブジェクトを指定します。複数指定した
場合は先頭のオブジェクトのみが設定されます。 -
IRB
:: ExtendCommand :: Workspaces # execute(*obj) -> [IRB :: WorkSpace] (27004.0) -
現在のワークスペースの一覧を返します。
現在のワークスペースの一覧を返します。
@param obj 使用しません。 -
Shell
:: CommandProcessor # system(command , *opts) -> Shell :: SystemCommand (19327.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