るりまサーチ (Ruby 2.6.0)

最速Rubyリファレンスマニュアル検索!
210件ヒット [1-100件を表示] (0.125秒)

別のキーワード

  1. _builtin to_c
  2. etc sc_2_c_bind
  3. etc sc_2_c_dev
  4. tracer display_c_call
  5. tracer display_c_call?

キーワード

検索結果

<< 1 2 3 > >>

Gem::Command#command -> String (90607.0)

コマンドの名前を返します。

コマンドの名前を返します。

Shell::SystemCommand#command -> String (90607.0)

@todo

@todo

コマンド名を返します。

Gem::CommandManager#find_command(command_name) -> Gem::Command | nil (55867.0)

登録されているコマンドからマッチしたものを返します。

登録されているコマンドからマッチしたものを返します。

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

@return Gem::Command のサブクラスのインスタンスを返します。

@raise RuntimeError マッチする可能性のあるコマンドが複数ある場合に発生します。
また、マッチするコマンドが無かった場合にも発生します。

Gem::CommandManager#find_command_possibilities(command_name) -> Array (55228.0)

登録されているコマンドでマッチする可能性のあるものを返します。

登録されているコマンドでマッチする可能性のあるものを返します。

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

Gem::CommandManager#register_command(command_name) -> false (55228.0)

コマンドを自身に登録します。

コマンドを自身に登録します。

@param command_name コマンド名をシンボルで指定します。

絞り込み条件を変える

Shell::CommandProcessor#find_system_command(command) (55210.0)

@todo

@todo

Gem::CommandManager#command_names -> Array (54607.0)

登録されているコマンド名の配列を返します。

登録されているコマンド名の配列を返します。

Gem::Commands::LockCommand#complain(message) -> () (54304.0)

指定されたメッセージを表示します。--strict が有効な場合は例外が発生します。

指定されたメッセージを表示します。--strict が有効な場合は例外が発生します。

@param message 表示するメッセージを指定します。

@raise Gem::Exception コマンドラインオプションに --strict が指定されている場合に発生します。

Gem::Commands::DependencyCommand#find_reverse_dependencies(spec) -> Array (45322.0)

与えられた Gem スペックに依存する Gem のリストを返します。

与えられた Gem スペックに依存する Gem のリストを返します。

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

Gem::Commands::DependencyCommand#print_dependencies(spec, level = 0) -> String (45322.0)

依存関係を表す文字列を返します。

依存関係を表す文字列を返します。

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

@param level 依存関係の深さを指定します。

絞り込み条件を変える

Gem::Commands::BuildCommand#execute -> () (45304.0)

コマンドを実行します。

コマンドを実行します。

Gem::Commands::BuildCommand#load_gemspecs(filename) -> Array (45304.0)

gemspec ファイルをロードします。

gemspec ファイルをロードします。

@param filename ファイル名を指定します。

Gem::Commands::DependencyCommand#execute -> () (45304.0)

コマンドを実行します。

コマンドを実行します。

Gem::Commands::LockCommand#spec_path(gem_full_name) -> String (45304.0)

指定された Gem パッケージの gemspec ファイルのフルパスを返します。

指定された Gem パッケージの gemspec ファイルのフルパスを返します。

@param gem_full_name Gem パッケージの名前を指定します。

Gem::Commands::UpdateCommand#which_to_update(highest_installed_gems, gem_names) -> Array (45304.0)

更新が必要な Gem のリストを返します。

更新が必要な Gem のリストを返します。

絞り込み条件を変える

IRB::ExtendCommand::IrbCommand#execute(*obj) -> IRB::Irb (45304.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#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

IRB::ExtendCommand::Nop#irb_context -> IRB::Context (36652.0)

irb の現在の設定(IRB::Context)を返します。

irb の現在の設定(IRB::Context)を返します。

IRB::ExtendCommandBundle#irb_context -> IRB::Context (36652.0)

現在の irb に関する IRB::Context を返します。

現在の irb に関する IRB::Context を返します。

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' です。

Shell::CommandProcessor#concat(*jobs) -> Shell::Concat (36604.0)

@todo

@todo

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

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

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

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

絞り込み条件を変える

Gem::Commands::DependencyCommand#find_gems(name, source_index) -> Hash (36322.0)

与えられた Gem の名前をインデックスから検索します。

与えられた Gem の名前をインデックスから検索します。

@param name Gem の名前を指定します。

@param source_index Gem::SourceIndex のインスタンスを指定します。

@see Gem::SourceIndex#search

Gem::Commands::WhichCommand#find_paths(package_name, dirs) -> Array (36304.0)

dirs から package_name という名前を持つファイルを探索します。

dirs から package_name という名前を持つファイルを探索します。

以下の拡張子を持つファイルが対象です。

%w[.rb .rbw .so .dll .bundle]

@param package_name ファイルの名前を指定します。

@param dirs 探索するディレクトリを文字列の配列で指定します。

Shell::SystemCommand#name -> String (36007.0)

@todo

@todo

コマンド名を返します。

Gem::Commands::BuildCommand#arguments -> String (36004.0)

引数の説明を表す文字列を返します。

引数の説明を表す文字列を返します。

Gem::Commands::BuildCommand#usage -> String (36004.0)

使用方法を表す文字列を返します。

使用方法を表す文字列を返します。

絞り込み条件を変える

Gem::Commands::BuildCommand#yaml?(filename) -> bool (36004.0)

与えられたファイル名を持つファイルが yaml ファイルである場合に真を返します。

与えられたファイル名を持つファイルが yaml ファイルである場合に真を返します。

@param filename ファイル名を指定します。

Gem::Commands::DependencyCommand#arguments -> String (36004.0)

引数の説明を表す文字列を返します。

引数の説明を表す文字列を返します。

Gem::Commands::DependencyCommand#usage -> String (36004.0)

使用方法を表す文字列を返します。

使用方法を表す文字列を返します。

Gem::Commands::UnpackCommand#get_path(gemname, version_req) -> String | nil (36004.0)

引数で指定された条件にマッチする Gem パッケージを保存しているパスを返します。

引数で指定された条件にマッチする Gem パッケージを保存しているパスを返します。

@param gemname Gem パッケージの名前を指定します。

@param version_req バージョンの満たすべき条件を文字列で指定します。

Gem::Commands::UpdateCommand#do_rubygems_update(version) (36004.0)

RubyGems 自体を更新します。

RubyGems 自体を更新します。

絞り込み条件を変える

Shell::CommandProcessor#transact { ... } -> object (27622.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 と同じとなる。
}

Shell::CommandProcessor#blockdev?(file) -> bool (27352.0)

FileTest モジュールにある同名のクラスメソッドと同じです.

FileTest モジュールにある同名のクラスメソッドと同じです.

@param file ファイル名を表す文字列か IO オブジェクトを指定します。

@see FileTest.#blockdev?

Shell::CommandProcessor#chardev?(file) -> bool (27352.0)

FileTest モジュールにある同名のクラスメソッドと同じです.

FileTest モジュールにある同名のクラスメソッドと同じです.

@param file ファイル名を表す文字列か IO オブジェクトを指定します。

@see FileTest.#chardev?

Shell::CommandProcessor#chmod(mode, *filename) -> Integer (27352.0)

File クラスにある同名のクラスメソッドと同じです.

File クラスにある同名のクラスメソッドと同じです.

@param filename ファイル名を表す文字列を指定します。

@param mode chmod(2) と同様に整数で指定します。

@see File.chmod

Shell::CommandProcessor#chown(owner, group, *filename) -> Integer (27352.0)

File クラスにある同名のクラスメソッドと同じです.

File クラスにある同名のクラスメソッドと同じです.

@param owner chown(2) と同様に数値で指定します。nil または -1 を指定することで、オーナーを現在のままにすることができます。

@param group chown(2) と同様に数値で指定します。nil または -1 を指定することで、グループを現在のままにすることができます。

@param filename ファイル名を表す文字列を指定します。

@see File.chown

絞り込み条件を変える

Shell::CommandProcessor#ctime(filename) -> Time (27352.0)

File クラスにある同名のクラスメソッドと同じです.

File クラスにある同名のクラスメソッドと同じです.

@param filename ファイル名を表す文字列か IO オブジェクトを指定します。

@see File.ctime

Shell::CommandProcessor#directory?(file) -> bool (27352.0)

FileTest モジュールにある同名のクラスメソッドと同じです.

FileTest モジュールにある同名のクラスメソッドと同じです.

@param file ファイル名を表す文字列か IO オブジェクトを指定します。

@see FileTest.#directory?

Shell::CommandProcessor#executable?(file) -> bool (27352.0)

FileTest モジュールにある同名のクラスメソッドと同じです.

FileTest モジュールにある同名のクラスメソッドと同じです.

@param file ファイル名を表す文字列を指定します。

@see FileTest.#executable?

Shell::CommandProcessor#executable_real?(file) -> bool (27352.0)

FileTest モジュールにある同名のクラスメソッドと同じです.

FileTest モジュールにある同名のクラスメソッドと同じです.

@param file ファイル名を表す文字列を指定します。

@see FileTest.#executable_real?

Shell::CommandProcessor#socket?(file) -> bool (27352.0)

FileTest モジュールにある同名のクラスメソッドと同じです.

FileTest モジュールにある同名のクラスメソッドと同じです.

@param file ファイル名を表す文字列を指定します。

@see FileTest.#socket?

絞り込み条件を変える

Shell::CommandProcessor#sticky?(file) -> bool (27352.0)

FileTest モジュールにある同名のクラスメソッドと同じです.

FileTest モジュールにある同名のクラスメソッドと同じです.

@param file ファイル名を表す文字列を指定します。

@see FileTest.#sticky?

Shell::CommandProcessor#truncate(path, length) -> 0 (27352.0)

File クラスにある同名のクラスメソッドと同じです.

File クラスにある同名のクラスメソッドと同じです.

@param path パスを表す文字列を指定します。

@param length 変更したいサイズを整数で与えます。

@see File.truncate

IRB::ExtendCommand::PushWorkspace#execute(*obj) -> [IRB::WorkSpace] (27322.0)

UNIX シェルコマンドの pushd と同じです。

UNIX シェルコマンドの pushd と同じです。

@param obj IRB::WorkSpace オブジェクトを指定します。複数指定した
場合は先頭のオブジェクトのみが設定されます。

Shell::CommandProcessor#cat(*files) -> Shell::Filter (27322.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...

Shell::CommandProcessor#echo(*strings) -> Shell::Filter (27322.0)

実行すると, それらを内容とする Filter オブジェクトを返します.

実行すると, それらを内容とする Filter オブジェクトを返します.

@param strings シェルコマンド echo に与える引数を文字列で指定します。

動作例
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#description -> String (27304.0)

このメソッドはサブクラスで再定義されます。 コマンドが実行することを説明する文字列を返します。

このメソッドはサブクラスで再定義されます。
コマンドが実行することを説明する文字列を返します。

Gem::Command#execute -> () (27304.0)

このメソッドはサブクラスで再定義されます。 コマンドを実行します。

このメソッドはサブクラスで再定義されます。
コマンドを実行します。

@raise RuntimeError このメソッドがサブクラスで再定義されていない場合に発生します。

Gem::CommandManager#process_args(args) -> () (27304.0)

引数 args を処理して gem コマンドを実行するために必要な処理を行います。

引数 args を処理して gem コマンドを実行するために必要な処理を行います。

@param args コマンドラインから受け取った引数を指定します。

IRB::ExtendCommand::ChangeWorkspace#execute(*obj) -> obj (27304.0)

irb の self を obj で指定したオブジェクトに設定します。self に設定され たオブジェクトを返します。

irb の self を obj で指定したオブジェクトに設定します。self に設定され
たオブジェクトを返します。

@param obj 任意のオブジェクトを指定できます。複数指定した場合は先頭のオ
ブジェクトのみが設定されます。

IRB::ExtendCommand::CurrentWorkingWorkspace#execute(*obj) -> obj (27304.0)

irb の self を返します。

irb の self を返します。

@param obj 使用しません。

絞り込み条件を変える

IRB::ExtendCommand::Foreground#execute(*obj) -> IRB::Irb (27304.0)

指定したサブ irb に移動します。

指定したサブ irb に移動します。

@param obj 移動するサブ irb を識別する以下のいずれかのオブジェクトを指定します。

* irb インタプリタ番号
* irb オブジェクト
* スレッド ID
* 各インタプリタの self (「irb(obj)」で起動した時の obj)

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::Kill#execute(*obj) -> object (27304.0)

指定したサブ irb を停止します。

指定したサブ irb を停止します。

@param obj 停止するサブ irb を識別する以下のいずれかのオブジェクトを指定します。

* irb インタプリタ番号
* irb オブジェクト
* スレッド ID
* 各インタプリタの self (「irb(obj)」で起動した時の obj)

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::Nop#execute(*opts) -> () (27304.0)

何もしません。サブクラスでオーバーライドして使用します。

何もしません。サブクラスでオーバーライドして使用します。

@param opts irb 中でコマンドに渡す引数を指定します。

IRB::ExtendCommand::PopWorkspace#execute(*obj) -> [IRB::WorkSpace] (27304.0)

UNIX シェルコマンドの popd と同じです。

UNIX シェルコマンドの popd と同じです。

@param obj 使用しません。

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 ファイル名を文字列で指定します。

IRB::ExtendCommand::Workspaces#execute(*obj) -> [IRB::WorkSpace] (27304.0)

現在のワークスペースの一覧を返します。

現在のワークスペースの一覧を返します。

@param obj 使用しません。

絞り込み条件を変える

Shell::BuiltInCommand#active? -> true (27304.0)

@todo

@todo

Shell::CommandProcessor#check_point (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::SystemCommand#active? -> bool (27304.0)

@todo

@todo

絞り込み条件を変える

Shell::SystemCommand#each(rs = nil) {|line| ... } (27304.0)

@todo

@todo

@param rs

Shell::SystemCommand#super_each -> () (27304.0)

@todo

@todo

Shell::Filter#each です。

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

Gem::CommandManager#[](command_name) -> Gem::Command | nil (19228.0)

引数で指定されたコマンド名に対応するクラスのインスタンスを返します。

引数で指定されたコマンド名に対応するクラスのインスタンスを返します。

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

Shell::CommandProcessor#[](command, file1, file2 = nil) -> bool | Time | Integer | nil (18712.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 (18712.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::ProcessController#add_schedule(command) -> () (18625.0)

指定されたコマンドを待機ジョブとして登録します。 ただし、実行中のジョブが存在しない場合は、そのジョブを直ちに実行します。

指定されたコマンドを待機ジョブとして登録します。
ただし、実行中のジョブが存在しない場合は、そのジョブを直ちに実行します。

@param command コマンドを指定します。

Shell#transact { ... } -> object (18622.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 と同じとなる。
}

Shell::Filter#transact { ... } -> object (18622.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 と同じとなる。
}

DRb::ExtServManager#service(name) -> DRb::ExtServ (18406.0)

name で指定したサービスに関連付けられた DRb::ExtServ オブジェクトを返します。

name で指定したサービスに関連付けられた DRb::ExtServ
オブジェクトを返します。

サービスを提供するプロセスが起動していない場合は、DRb::ExtServManager.command
で指定したプロセスを起動し、そのプロセスが DRb::ExtServ オブジェクトが
DRb::ExtServ.new によって ExtServManager に登録されるのを待ちます。
その後、登録されたオブジェクトを返します。

すでにプロセスが起動していた場合は、登録されている DRb::ExtServ オブジェクトを
返します。

DRb::ExtServ#stop_servic...

絞り込み条件を変える

Shell#cat(*files) -> Shell::Filter (18322.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...

Shell#echo(*strings) -> Shell::Filter (18322.0)

実行すると, それらを内容とする Filter オブジェクトを返します.

実行すると, それらを内容とする Filter オブジェクトを返します.

@param strings シェルコマンド echo に与える引数を文字列で指定します。

動作例
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...

Shell::CommandProcessor#out(dev = STDOUT, &block) -> () (18322.0)

Shell#transact を呼び出しその結果を dev に出力します。

Shell#transact を呼び出しその結果を dev に出力します。

@param dev 出力先をIO オブジェクトなどで指定します。

@param block transact 内部で実行するシェルを指定します。


使用例:
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
File.open("out.txt", "w"){ |fp|
sh.out(fp) {
system("ls", "-l") | head("-n 3")
}
}

Shell::Filter#cat(*files) -> Shell::Filter (18322.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...

Shell::Filter#echo(*strings) -> Shell::Filter (18322.0)

実行すると, それらを内容とする Filter オブジェクトを返します.

実行すると, それらを内容とする Filter オブジェクトを返します.

@param strings シェルコマンド echo に与える引数を文字列で指定します。

動作例
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#summary=(description) (18304.0)

コマンドの短い説明をセットします。

コマンドの短い説明をセットします。

@param description コマンドの短い説明を指定します。

Gem::Command#when_invoked { ... } -> Proc (18304.0)

コマンドが実行されたときに評価するブロックを登録します。

コマンドが実行されたときに評価するブロックを登録します。

通常のコマンド呼び出しは、そのコマンドクラスの execute メソッドを実行するだけです。
このメソッドでブロックを登録すると、通常の呼び出しを上書きすることができます。
これはテストメソッドで正しくコマンドの呼び出しが実行されたことを確認するのに使用することが出来ます。

IRB::ExtendCommandBundle#irb_exit(ret = 0) -> object (18304.0)

irb を終了します。ret で指定したオブジェクトを返します。

irb を終了します。ret で指定したオブジェクトを返します。

@param ret 戻り値を指定します。

ユーザが直接使用するものではありません。

Shell::CommandProcessor#utime(atime, mtime, *filename) -> Integer (18088.0)

File クラスにある同名のクラスメソッドと同じです.

File クラスにある同名のクラスメソッドと同じです.

@param filename ファイル名を表す文字列を指定します。

@param atime 最終アクセス時刻を Time か、起算時からの経過秒数を数値で指定します。

@param utime 更新時刻を Time か、起算時からの経過秒数を数値で指定します。

@see File.utime

IRB::ExtendCommandBundle#irb_load(*opts, &b) -> nil (18052.0)

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

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

@see IRB::ExtendCommand::Load#execute

絞り込み条件を変える

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

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

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

@see IRB::ExtendCommand::Require#execute

Shell::CommandProcessor#atime(filename) -> Time (18052.0)

File クラスにある同名のクラスメソッドと同じです.

File クラスにある同名のクラスメソッドと同じです.

@param filename ファイル名を表す文字列か IO オブジェクトを指定します。

@see File.atime

Shell::CommandProcessor#basename(filename, suffix = "") -> String (18052.0)

File クラスにある同名のクラスメソッドと同じです.

File クラスにある同名のクラスメソッドと同じです.

@param filename ファイル名を表す文字列を指定します。

@param suffix サフィックスを文字列で与えます。'.*' という文字列を与えた場合、'*' はワイルドカードとして働き
'.' を含まない任意の文字列にマッチします。

@see File.basename

Shell::CommandProcessor#delete(*filename) -> Integer (18052.0)

File クラスにある同名のクラスメソッドと同じです.

File クラスにある同名のクラスメソッドと同じです.

@param filename ファイル名を表す文字列を指定します。

@see File.delete

Shell::CommandProcessor#dirname(filename) -> String (18052.0)

File クラスにある同名のクラスメソッドと同じです.

File クラスにある同名のクラスメソッドと同じです.

@param filename ファイル名を表す文字列を指定します。

@see File.dirname

絞り込み条件を変える

<< 1 2 3 > >>