るりまサーチ

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

別のキーワード

  1. kernel require
  2. getoptlong require_order
  3. rubygems/custom_require require
  4. irb/ext/use-loader irb_require
  5. require execute

検索結果

FileUtils.commands -> Array (18113.0)

何らかのオプションを持つメソッド名の配列を返します。

...何らかのオプションを持つメソッド名の配列を返します。

//emlist[][ruby]{
require
'fileutils'
FileUtils.commands # => ["chmod", "cp", "cp_r", "install", ...]
//}...

IRB::ExtendCommandBundle.install_extend_commands -> object (6119.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...

Shell.install_system_commands(pre = "sys_") -> () (6113.0)

system_path上にある全ての実行可能ファイルをShellに定義する. メソッ ド名は元のファイル名の頭にpreをつけたものとなる.

...るメソッド名の先頭に付加される文字列を指定します。

使用例: ls -l | head -n 5 のような例。

require
'shell'
Shell.install_system_commands
sh = Shell.new
sh.verbose = false
sh.transact {
(sys_ls("-l") | sys_head("-n 5")).each {|l|
puts l
}...

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

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

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

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

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

@see IRB::ContextExtender.def_extend_command...

rubygems/commands/lock_command (6012.0)

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

...in the requirements list to ensure that the gems loaded will always
be consistent. A full recursive search of all effected gems will be
generated.

Example:

gemlock rails-1.0.0 > lockdown.rb

will produce in lockdown.rb:

require
"rub...
...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...

絞り込み条件を変える

Gem::Commands::WhichCommand#gem_paths(spec) -> Array (3016.0)

与えられた Gem::Specification のインスタンスからその Gem が require するファイルのあるディレクトリをまとめて返します。

...与えられた Gem::Specification のインスタンスからその Gem が
require
するファイルのあるディレクトリをまとめて返します。

@param spec Gem::Specification のインスタンスを指定します。...

rubygems/command_manager (24.0)

gem コマンドによってサポートされているサブコマンドを管理するライブラリです。

...リです。

Extra commands can be provided by writing a rubygems_plugin.rb
file in an installed gem. You should register your command against the
Gem::CommandManager instance, like this:

# file rubygems_plugin.rb
require
'rubygems/command_manager'

class Gem::Commands::EditCommand < Gem::C...
...ommand
# ...
end

Gem::CommandManager.instance.register_command :edit

See Gem::Command for instructions on writing gem commands....

rubygems (18.0)

RubyGems を扱うためのクラスやモジュールが定義されているライブラリです。

...gem install rake
gem list --local
gem build package.gemspec
gem help install

さらにヘルプ:
gem help commands 全ての 'gem' コマンドをリストアップします
gem help examples いくつかの使用方法の例を...
...es を追加しています。

また、以下のように Rakefile にタスクを追加することもできます。

//emlist[gemspec][ruby]{
require
'rake/gempackagetask'

PKG_FILES = FileList[
'lib/hello.rb',
'spec/*'
]
spec = Gem::Specification.new do |s|
s.name = 'hello'...
...'http://example.com/hello'
s.platform = Gem::Platform::RUBY
s.summary = 'Hello Gem'
s.files = PKG_FILES.to_a
s.require_path = 'lib'
s.has_rdoc = false
s.extra_rdoc_files = ['README']
end

Rake::GemPackageTask.new(spec) do |pkg|
pkg.gem_spec = spe...