別のキーワード
ライブラリ
- ビルトイン (32)
-
drb
/ extservm (3) - fileutils (1)
-
irb
/ cmd / chws (4) -
irb
/ cmd / help (2) -
irb
/ cmd / load (6) -
irb
/ cmd / nop (5) -
irb
/ cmd / pushws (6) -
irb
/ cmd / subirb (8) -
irb
/ ext / use-loader (2) -
irb
/ extend-command (13) - mkmf (8)
-
net
/ imap (1) -
net
/ protocol (1) -
net
/ smtp (1) - optparse (12)
- pty (4)
- rake (1)
-
rake
/ packagetask (4) -
rubygems
/ command (38) -
rubygems
/ command _ manager (9) -
rubygems
/ commands / build _ command (6) -
rubygems
/ commands / cert _ command (1) -
rubygems
/ commands / check _ command (1) -
rubygems
/ commands / cleanup _ command (1) -
rubygems
/ commands / contents _ command (1) -
rubygems
/ commands / dependency _ command (7) -
rubygems
/ commands / environment _ command (1) -
rubygems
/ commands / fetch _ command (1) -
rubygems
/ commands / generate _ index _ command (1) -
rubygems
/ commands / help _ command (3) -
rubygems
/ commands / install _ command (1) -
rubygems
/ commands / list _ command (1) -
rubygems
/ commands / lock _ command (3) -
rubygems
/ commands / mirror _ command (1) -
rubygems
/ commands / outdated _ command (1) -
rubygems
/ commands / pristine _ command (1) -
rubygems
/ commands / query _ command (1) -
rubygems
/ commands / rdoc _ command (1) -
rubygems
/ commands / search _ command (1) -
rubygems
/ commands / server _ command (1) -
rubygems
/ commands / sources _ command (1) -
rubygems
/ commands / specification _ command (1) -
rubygems
/ commands / stale _ command (1) -
rubygems
/ commands / uninstall _ command (1) -
rubygems
/ commands / unpack _ command (2) -
rubygems
/ commands / update _ command (3) -
rubygems
/ commands / which _ command (4) -
rubygems
/ exceptions (1) -
rubygems
/ ext / builder (1) -
rubygems
/ version _ option (3) - shell (16)
-
shell
/ builtin-command (3) -
shell
/ command-processor (84) -
shell
/ error (1) -
shell
/ filter (16) -
shell
/ process-controller (5) -
shell
/ system-command (17) - un (1)
クラス
-
DRb
:: ExtServManager (3) -
Gem
:: Command (37) -
Gem
:: CommandManager (8) -
Gem
:: Commands :: BuildCommand (5) -
Gem
:: Commands :: DependencyCommand (6) -
Gem
:: Commands :: HelpCommand (2) -
Gem
:: Commands :: LockCommand (2) -
Gem
:: Commands :: UnpackCommand (1) -
Gem
:: Commands :: UpdateCommand (2) -
Gem
:: Commands :: WhichCommand (3) -
Gem
:: Ext :: Builder (1) - IO (14)
-
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 (4) -
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 (16)
-
Shell
:: BuiltInCommand (2) -
Shell
:: CommandProcessor (83) -
Shell
:: Filter (16) -
Shell
:: ProcessController (5) -
Shell
:: SystemCommand (16)
モジュール
- FileUtils (2)
-
Gem
:: VersionOption (2) -
IRB
:: ContextExtender (2) -
IRB
:: ExtendCommandBundle (12) - Kernel (24)
- PTY (4)
- Process (1)
- Signal (2)
キーワード
- < (1)
- > (1)
- >> (1)
- BuildCommand (1)
- BuiltInCommand (1)
- CertCommand (1)
- ChangeWorkspace (1)
- CheckCommand (1)
- CleanupCommand (1)
- Command (1)
- CommandLineError (1)
- CommandManager (1)
- CommandNotFound (1)
- CommandProcessor (1)
- ContentsCommand (1)
- CurrentWorkingWorkspace (1)
- DependencyCommand (1)
- EXAMPLES (1)
- EXT (1)
- EnvironmentCommand (1)
- ExtendCommandBundle (1)
- FetchCommand (1)
- Foreground (1)
- GenerateIndexCommand (1)
- HELP (1)
- Help (1)
- HelpCommand (1)
- InstallCommand (1)
- InstallUpdateOptions (1)
- IrbCommand (1)
- Jobs (1)
- Kill (1)
- ListCommand (1)
- Load (1)
- LocalRemoteOptions (1)
- LockCommand (1)
- MirrorCommand (1)
-
NEWS for Ruby 2
. 5 . 0 (1) -
NO
_ OVERRIDE (1) - NoDelegateMethods (1)
- Nop (1)
-
OVERRIDE
_ ALL (1) -
OVERRIDE
_ PRIVATE _ ONLY (1) - OutdatedCommand (1)
- PLATFORMS (1)
- PopWorkspace (1)
- PristineCommand (1)
- ProtoCommandError (1)
- PushWorkspace (1)
- QueryCommand (1)
- RdocCommand (1)
- Require (1)
- Rubyで使われる記号の意味(正規表現の複雑な記号は除く) (1)
- SMTPUnsupportedCommand (1)
- SearchCommand (1)
- ServerCommand (1)
- Source (1)
- SourcesCommand (1)
- SpecificationCommand (1)
- StaleCommand (1)
- SystemCommand (1)
- UninstallCommand (1)
- UnpackCommand (1)
- UpdateCommand (1)
- VersionOption (1)
- WhichCommand (1)
- Win32ネイティブ版Rubyの互換性問題 (1)
- Workspaces (1)
- [] (4)
- ` (1)
- active? (2)
-
add
_ common _ option (1) -
add
_ delegate _ command _ to _ shell (1) -
add
_ extra _ args (1) -
add
_ option (1) -
add
_ platform _ option (1) -
add
_ schedule (1) -
add
_ specific _ extra _ args (1) -
add
_ version _ option (1) -
alias
_ command (3) -
alias
_ map (1) - append (1)
- arguments (3)
- atime (1)
- attr (1)
- basename (1)
- begins? (1)
- blockdev? (1)
-
build
_ args (1) -
build
_ args= (1) - cat (3)
-
cc
_ command (1) - chardev? (1)
-
check
_ point (1) - chmod (1)
- chown (1)
- command= (1)
-
command
_ names (1) -
command
_ processor (1) - commands (1)
- complain (1)
- concat (1)
-
cpp
_ command (1) - ctime (1)
-
def
_ builtin _ commands (1) -
def
_ extend _ command (2) -
def
_ system _ command (2) - defaults (1)
- defaults= (1)
-
defaults
_ str (1) - delete (1)
- description (1)
- directory? (1)
- dirname (1)
-
do
_ rubygems _ update (1) -
drb
/ extservm (1) - each (1)
- echo (3)
- exec (5)
- executable? (1)
-
executable
_ real? (1) - execute (18)
- exist? (1)
- exists? (1)
-
extend
_ object (1) -
extra
_ args (1) -
extra
_ args= (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) - getoptlong (1)
- getpty (2)
- glob (3)
- grpowned? (1)
- handles? (1)
- help (1)
- identical? (1)
- initialize (1)
- input= (1)
-
install
_ alias _ method (1) -
install
_ builtin _ commands (1) -
install
_ extend _ commands (2) -
install
_ system _ commands (2) - instance (1)
- invoke (1)
-
irb
/ extend-command (1) -
irb
_ context (2) -
irb
_ exit (1) -
irb
_ load (1) -
irb
_ original _ method _ name (1) -
irb
_ require (1) - join (1)
- kill (1)
-
kill
_ job (1) - link (1)
-
link
_ command (1) -
load
_ gemspecs (1) - lstat (1)
-
method
_ added (1) - mkdir (1)
- mtime (1)
- name (1)
-
net
/ ftp (1) - new (3)
- notify (3)
- on (12)
- open (1)
-
optparse
/ date (1) -
optparse
/ shellwords (1) -
optparse
/ time (1) -
optparse
/ uri (1) - out (3)
- owned? (1)
- pipe? (1)
- popen (14)
-
print
_ dependencies (1) -
process
_ args (1) -
program
_ name (1) -
program
_ name= (1) - rdoc (1)
- readable? (1)
-
readable
_ real? (1) - readlink (1)
-
register
_ command (1) - rehash (1)
-
remove
_ option (1) - rename (1)
- rm (1)
- rmdir (1)
-
ruby 1
. 8 . 4 feature (1) -
ruby 1
. 9 feature (1) - rubygems (1)
-
rubygems
/ command (1) -
rubygems
/ command _ manager (1) -
rubygems
/ commands / build _ command (1) -
rubygems
/ commands / cert _ command (1) -
rubygems
/ commands / check _ command (1) -
rubygems
/ commands / cleanup _ command (1) -
rubygems
/ commands / contents _ command (1) -
rubygems
/ commands / dependency _ command (1) -
rubygems
/ commands / environment _ command (1) -
rubygems
/ commands / fetch _ command (1) -
rubygems
/ commands / generate _ index _ command (1) -
rubygems
/ commands / help _ command (1) -
rubygems
/ commands / install _ command (1) -
rubygems
/ commands / list _ command (1) -
rubygems
/ commands / lock _ command (1) -
rubygems
/ commands / mirror _ command (1) -
rubygems
/ commands / outdated _ command (1) -
rubygems
/ commands / pristine _ command (1) -
rubygems
/ commands / query _ command (1) -
rubygems
/ commands / rdoc _ command (1) -
rubygems
/ commands / search _ command (1) -
rubygems
/ commands / server _ command (1) -
rubygems
/ commands / sources _ command (1) -
rubygems
/ commands / specification _ command (1) -
rubygems
/ commands / stale _ command (1) -
rubygems
/ commands / uninstall _ command (1) -
rubygems
/ commands / unpack _ command (1) -
rubygems
/ commands / update _ command (1) -
rubygems
/ commands / which _ command (1) -
rubygems
/ server (1) -
rubygems
/ version _ option (1) - run (2)
-
run
_ config (1) - service (1)
- setgid? (1)
- setuid? (1)
- sfork (1)
- sh (1)
-
shell
/ builtin-command (1) -
shell
/ command-processor (1) -
shell
/ system-command (1) -
show
_ help (1) -
show
_ lookup _ failure (1) - size (1)
- size? (1)
- socket? (1)
- spawn (6)
-
spec
_ path (1) -
specific
_ extra _ args (1) -
specific
_ extra _ args _ hash (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 (7)
-
tar
_ command (1) -
tar
_ command= (1) - tee (3)
- terminate (1)
-
terminate
_ job (1) - test (3)
-
to
_ a (1) -
to
_ s (1) - transact (3)
- trap (4)
- truncate (1)
-
try
_ do (2) - tsort (1)
- un (1)
-
unalias
_ command (2) -
undef
_ system _ command (2) - unlink (1)
- usage (3)
- utime (1)
- wait? (2)
-
when
_ invoked (1) -
which
_ to _ update (1) -
win32
/ registry (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)
- コマンド (1)
- リテラル (1)
検索結果
-
optparse
/ shellwords (19.0) -
OptionParser#on で使用可能な引数に Shellwords 追加されます。 オプションの引数は Shellwords.#shellwords によって配列に変換されてから、 OptionParser#on のブロックに渡されます。
OptionParser#on で使用可能な引数に Shellwords
追加されます。
オプションの引数は Shellwords.#shellwords によって配列に変換されてから、
OptionParser#on のブロックに渡されます。
//emlist[][ruby]{
require 'optparse/shellwords'
opts = OptionParser.new
opts.on("-s VAL", Shellwords){|a|
p a #=> ["hoge", "foo", "bar"]
}
opts.parse!
# ruby command -s hog... -
optparse
/ time (19.0) -
OptionParser#on で使用可能なクラスに Time が 追加されます。 オプションの引数は Time クラスのインスタンスに変換されてから、 OptionParser#on のブロックに渡されます。
OptionParser#on で使用可能なクラスに Time が
追加されます。
オプションの引数は Time クラスのインスタンスに変換されてから、
OptionParser#on のブロックに渡されます。
//emlist[][ruby]{
require 'optparse/time'
opts = OptionParser.new
opts.on("-t TIME", Time){|t|
p t #=> Sat, Jan 01 2000 00:00:00 +0900
}
opts.parse!
# ruby command -t '2000/01/01 00:00'
//}... -
optparse
/ uri (19.0) -
OptionParser#on で使用可能なクラスに URI が 追加されます。 オプションの引数は URI クラスのインスタンスに変換されてから、 OptionParser#on のブロックに渡されます。
OptionParser#on で使用可能なクラスに URI が
追加されます。
オプションの引数は URI クラスのインスタンスに変換されてから、
OptionParser#on のブロックに渡されます。
//emlist[][ruby]{
require 'optparse/uri'
opts = OptionParser.new
opts.on("-u URI", URI){|u|
p u #=> #<URI::HTTP:0x201267d4 URL:http://www.example.com>
}
opts.parse!
# ruby command -u http://w... -
ruby 1
. 9 feature (19.0) -
ruby 1.9 feature ruby version 1.9.0 は開発版です。 以下にあげる機能は将来削除されたり互換性のない仕様変更がなされるかもしれません。 1.9.1 以降は安定版です。 バグ修正がメインになります。
ruby 1.9 feature
ruby version 1.9.0 は開発版です。
以下にあげる機能は将来削除されたり互換性のない仕様変更がなされるかもしれません。
1.9.1 以降は安定版です。
バグ修正がメインになります。
記号について(特に重要なものは大文字(主観))
* カテゴリ
* [ruby]: ruby インタプリタの変更
* [api]: 拡張ライブラリ API
* [lib]: ライブラリ
* [parser]: 文法の変更
* [regexp]: 正規表現の機能拡張
* [marshal]: Marshal ファイルのフォーマット変更
* ... -
rubygems
/ server (19.0) -
Gem パッケージを配布したり Gem パッケージに同梱されているドキュメントを参照するための 簡易ウェブサーバを動かすためのライブラリです。
Gem パッケージを配布したり Gem パッケージに同梱されているドキュメントを参照するための
簡易ウェブサーバを動かすためのライブラリです。
rubygems/commands/server_command を使用して起動するウェブサーバの本体です。
このライブラリを使用したウェブサーバは以下の設定で動作します。
: "/"
インストールされている Gem パッケージの一覧を表示します。
: "/specs.#{Gem.marshal_version}.gz"
インストールされている全バージョンの情報 (パッケージ名、バージョン、プラットフォーム) を返します。
: "/lat... -
un (19.0)
-
Unix の基本コマンドの代替となるユーティリティ。
Unix の基本コマンドの代替となるユーティリティ。
Makefile 内でシステムに依存しないように用意されました。
mkmf が使用します。
Windows などワイルドカードを認識しないシステム(シェル)のために引数は
unがワイルドカード展開(Dir.glob参照)します(Unix ではシェ
ルとunにより二重にワイルドカード展開されます)。
=== 使い方:
ruby -run -e cp -- [-prv] SOURCE DEST
ruby -run -e ln -- [-sfv] TARGET LINK_NAME
ruby -run -e mv -- [... -
win32
/ registry (19.0) -
win32/registry は Win32 プラットフォームでレジストリをアクセスするための ライブラリです。Win32 API の呼び出しに Win32API を使います。
win32/registry は Win32 プラットフォームでレジストリをアクセスするための
ライブラリです。Win32 API の呼び出しに Win32API を使います。
//emlist{
require 'win32/registry'
Win32::Registry::HKEY_CURRENT_USER.open('SOFTWARE\foo') do |reg|
value = reg['foo'] # 値の読み込み
value = reg['foo', Win32::Registry::REG_SZ] ... -
Kernel
. # system(env , program , *args , options={}) -> bool | nil (16.0) -
引数を外部コマンドとして実行して、成功した時に真を返します。
引数を外部コマンドとして実行して、成功した時に真を返します。
子プロセスが終了ステータス 0 で終了すると成功とみなし true を返します。
それ以外の終了ステータスの場合は false を返します。
コマンドを実行できなかった場合は nil を返します。
終了ステータスは変数 $? で参照できます。
コマンドを実行することができなかった場合、多くのシェルはステータス
127 を返します。シェルを介さない場合は Ruby の子プロセスがステータス
127 で終了します。コマンドが実行できなかったのか、コマンドが失敗したの
かは、普通 $? を参照することで判別可能です。
Hash... -
Kernel
. # system(program , *args , options={}) -> bool | nil (16.0) -
引数を外部コマンドとして実行して、成功した時に真を返します。
引数を外部コマンドとして実行して、成功した時に真を返します。
子プロセスが終了ステータス 0 で終了すると成功とみなし true を返します。
それ以外の終了ステータスの場合は false を返します。
コマンドを実行できなかった場合は nil を返します。
終了ステータスは変数 $? で参照できます。
コマンドを実行することができなかった場合、多くのシェルはステータス
127 を返します。シェルを介さない場合は Ruby の子プロセスがステータス
127 で終了します。コマンドが実行できなかったのか、コマンドが失敗したの
かは、普通 $? を参照することで判別可能です。
Hash... -
Kernel
. # exec(env , program , *args , options={}) -> () (13.0) -
引数で指定されたコマンドを実行します。
引数で指定されたコマンドを実行します。
プロセスの実行コードはそのコマンド(あるいは shell)になるので、
起動に成功した場合、このメソッドからは戻りません。
この形式では、常に shell を経由せずに実行されます。
exec(3) でコマンドを実行すると、
元々のプログラムの環境をある程度(ファイルデスクリプタなど)引き継ぎます。
Hash を options として渡すことで、この挙動を変更できます。
詳しくは Kernel.#spawn を参照してください。
=== 引数の解釈
この形式で呼び出した場合、空白や shell のメタキャラクタも
そのまま program ... -
Kernel
. # exec(program , *args , options={}) -> () (13.0) -
引数で指定されたコマンドを実行します。
引数で指定されたコマンドを実行します。
プロセスの実行コードはそのコマンド(あるいは shell)になるので、
起動に成功した場合、このメソッドからは戻りません。
この形式では、常に shell を経由せずに実行されます。
exec(3) でコマンドを実行すると、
元々のプログラムの環境をある程度(ファイルデスクリプタなど)引き継ぎます。
Hash を options として渡すことで、この挙動を変更できます。
詳しくは Kernel.#spawn を参照してください。
=== 引数の解釈
この形式で呼び出した場合、空白や shell のメタキャラクタも
そのまま program ... -
IO
. popen("-" , mode = "r" , opt={}) -> IO (10.0) -
第一引数に文字列 "-" が指定された時、fork(2) を 行い子プロセスの標準入出力との間にパイプラインを確立します。 親プロセスでは IO オブジェクトを返し、子プロセスでは nil を返します。
第一引数に文字列 "-" が指定された時、fork(2) を
行い子プロセスの標準入出力との間にパイプラインを確立します。
親プロセスでは IO オブジェクトを返し、子プロセスでは
nil を返します。
io = IO.popen("-", "r+")
if io # parent
io.puts "foo"
p io.gets # => "child output: foo\n"
io.close
else # child
s = gets
print "child output: " + s
... -
IO
. popen("-" , mode = "r" , opt={}) {|io| . . . } -> object (10.0) -
第一引数に文字列 "-" が指定された時、fork(2) を 行い子プロセスの標準入出力との間にパイプラインを確立します。 親プロセスでは IO オブジェクトを返し、子プロセスでは nil を返します。
第一引数に文字列 "-" が指定された時、fork(2) を
行い子プロセスの標準入出力との間にパイプラインを確立します。
親プロセスでは IO オブジェクトを返し、子プロセスでは
nil を返します。
io = IO.popen("-", "r+")
if io # parent
io.puts "foo"
p io.gets # => "child output: foo\n"
io.close
else # child
s = gets
print "child output: " + s
... -
IO
. popen(env , "-" , mode = "r" , opt={}) -> IO (10.0) -
第一引数に文字列 "-" が指定された時、fork(2) を 行い子プロセスの標準入出力との間にパイプラインを確立します。 親プロセスでは IO オブジェクトを返し、子プロセスでは nil を返します。
第一引数に文字列 "-" が指定された時、fork(2) を
行い子プロセスの標準入出力との間にパイプラインを確立します。
親プロセスでは IO オブジェクトを返し、子プロセスでは
nil を返します。
io = IO.popen("-", "r+")
if io # parent
io.puts "foo"
p io.gets # => "child output: foo\n"
io.close
else # child
s = gets
print "child output: " + s
... -
IO
. popen(env , "-" , mode = "r" , opt={}) {|io| . . . } -> object (10.0) -
第一引数に文字列 "-" が指定された時、fork(2) を 行い子プロセスの標準入出力との間にパイプラインを確立します。 親プロセスでは IO オブジェクトを返し、子プロセスでは nil を返します。
第一引数に文字列 "-" が指定された時、fork(2) を
行い子プロセスの標準入出力との間にパイプラインを確立します。
親プロセスでは IO オブジェクトを返し、子プロセスでは
nil を返します。
io = IO.popen("-", "r+")
if io # parent
io.puts "foo"
p io.gets # => "child output: foo\n"
io.close
else # child
s = gets
print "child output: " + s
...