るりまサーチ

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

別のキーワード

  1. shell/builtin-command new
  2. shell/builtin-command each
  3. rubygems/command command
  4. irb/extend-command def_extend_command
  5. irb/extend-command install_extend_commands

検索結果

<< 1 2 3 ... > >>

IRB::ExtendCommand::Require (21016.0)

irb 中の irb_require コマンドのための拡張を定義したクラスです。

...irb 中の irb_require コマンドのための拡張を定義したクラスです。...

rubygems/commands/lock_command (12024.0)

指定された特定のバージョンの Gem パッケージに依存する Gem を使用するために 必要な Kernel#gem メソッドの呼び出し方法を文字列で出力します。

...記述を表示します
Description:
The lock command will generate a list of +gem+ statements that will lock
down
the versions for the gem given in the command line. It will specify exact
versions in the requirements list to ensure that the gems loaded will always...
...s will be
generated.

Example:

gemlock rails-1.0.0 > lockdown.rb

will produce in lockdown.rb:

require
"rubygems"
gem 'rails', '= 1.0.0'
gem 'rake', '= 0.7.0.1'
gem 'activesupport', '= 1.2.5'
gem 'activerecor...
...o ensure that the current
versions are loaded. Make sure that lockdown.rb is loaded *before* any
other require statements.

Notice that rails 1.0.0 only requires that rake 0.6.2 or better be used.
Rake-0.7.0.1 is the most recent version installed that satisfies that, s...

IRB::ExtendCommandBundle#irb_require(*opts, &b) -> bool (9123.0)

現在の irb に関する IRB::Context に対して irb_require コマンドを 実行します。

...現在の irb に関する IRB::Context に対して irb_require コマンドを
実行します。

@see IRB::ExtendCommand::Require#execute...

IRB::ExtendCommandBundle.install_extend_commands -> object (9118.0)

定義済みの拡張を読み込みます。

...* irb_push_workspace
* irb_pop_workspace
* irb_load
* irb_require
* irb_source
* irb
* irb_jobs
* irb_fg
* irb_kill
* irb_help

irb/extend-command require された時にライブラリ内部で自動的
に実行されます。

@see IRB::ExtendCommandBundle.install_extend_commands...

IRB::ExtendCommandBundle.def_extend_command(cmd_name, cmd_class, load_file = nil, *aliases) -> object (9107.0)

irb に cmd_name で指定したメソッドが実行できるように拡張します。

...お、このクラスは IRB::ExtendCommand 以下で定義
する必要があります。

@param load_file 指定したメソッドが定義されたファイル名を指
定します。このファイルは自動的に require されます。

@param aliases cmd_...
...す。複数指定する事ができます。フラグは
IRB::ExtendCommandBundle::NO_OVERRIDE、
IRB::ExtendCommandBundle::OVERRIDE_PRIVATE_ONLY、
IRB::ExtendCommandBundle::OVERRIDE_ALL のいずれか
を指定します。...

絞り込み条件を変える

Shell.def_system_command(command, path = command) -> nil (6355.0)

Shell のメソッドとして command を登録します.

...ell のメソッドとして command を登録します.

OS上のコマンドを実行するにはまず, Shellのメソッドとして定義します.
注) コマンドを定義しなくとも直接実行できる Shell#system コマンドもあります.

@param command Shell のメソッドと...
...文字列で指定します。

@param path command のパスを指定します。
指定しない場合はcommand と同じになります。

例)
require
'shell'
Shell.def_system_command "ls"
# ls を定義

Shell.def_system_command "sys_sort", "sort"
# sortコマンドをsy...

Shell.undef_system_command(command) -> Shell::CommandProcessor (6342.0)

commandを削除します.

...
command
を削除します.

@param command 削除するコマンドの文字列を指定します。

動作例:
require
'shell'
Shell.def_system_command("ls")
# ls を定義
Shell.undef_system_command("ls")
# ls を 削除

sh = Shell.new
begin
sh.transact {
ls("-l").each...

Shell.alias_command(alias, command, *opts) {...} -> self (6254.0)

コマンドの別名(エイリアス)を作成します。 コマンドが無い場合は、Shell.def_system_command などであらかじめ作成します.

...マンドが無い場合は、Shell.def_system_command などであらかじめ作成します.

@param alias エイリアスの名前を文字列で指定します.

@param command コマンド名を文字列で指定します.

@param opts command で指定したコマンドのオプションを...
...指定します.

使用例: 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(alias) -> () (6153.0)

commandのaliasを削除します.

...
command
のaliasを削除します.

@param alias 削除したいエイリアスの名前を文字列で指定します。

@raise NameError alias で指定したコマンドが無い場合に発生します。

使用例: ls -la | sort -k 5 のような例。
require
'shell'
Shell.def_system_co...
...mmand("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...

IRB::ContextExtender.install_extend_commands -> object (6118.0)

定義済みの拡張を読み込みます。

...で以下のメソッドが利用できるようになります。

* eval_history=
* use_tracer=
* math_mode=
* use_loader=
* save_history=

irb/extend-command require された時にライブラリ内部で自動的
に実行されます。

@see IRB::ContextExtender.def_extend_command...

絞り込み条件を変える

IRB::ContextExtender.def_extend_command(cmd_name, load_file, *aliases) -> object (6107.0)

IRB::Context に cmd_name で指定したメソッドが実行できるように拡張 します。

...す。

@param load_file cmd_name で指定したメソッドが定義されたファイル名を指
定します。このファイルは自動的に require されます。

@param aliases cmd_name の別名を Symbol で指定します。複数指定する事ができます。...
<< 1 2 3 ... > >>