るりまサーチ (Ruby 2.3.0)

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

別のキーワード

  1. openssl t61string
  2. asn1 t61string
  3. t61string new
  4. matrix t
  5. fiddle type_size_t

モジュール

キーワード

検索結果

<< 1 2 > >>

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

@todo

@todo

コマンド名を返します。

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

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

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

Shell::SystemCommand#terminate -> () (54904.0)

@todo

@todo

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

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

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

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

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

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

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

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

絞り込み条件を変える

Rake::PackageTask#tar_command -> String (45907.0)

tar コマンドとして使用するコマンドを返します。

tar コマンドとして使用するコマンドを返します。

デフォルトは 'tar' です。

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

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

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

IRB::ExtendCommand::IrbCommand#execute(*obj) -> IRB::Irb (45604.0)

新しいサブ irb インタプリタを起動します。

新しいサブ irb インタプリタを起動します。

@param obj 新しいサブ irb インタプリタで self にするオブジェクトを指定
します。省略した場合は irb を起動したときの main オブジェク
トを self にします。

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

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

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

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

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

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

絞り込み条件を変える

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

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

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

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

コマンドを実行します。

コマンドを実行します。

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

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

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

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

コマンドを実行します。

コマンドを実行します。

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

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

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

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

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

絞り込み条件を変える

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

絞り込み条件を変える

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

irb の self を返します。

irb の self を返します。

@param obj 使用しません。

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

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

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

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

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

IRB::ExtendCommand::Help#execute(*names) -> nil (36604.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 (36604.0)

サブ irb のリストを返します。

サブ irb のリストを返します。

IRB::ExtendCommand::Kill#execute(*obj) -> object (36604.0)

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

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

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

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

絞り込み条件を変える

IRB::ExtendCommand::Load#execute(file_name, priv = nil) -> nil (36604.0)

ファイル path を Ruby スクリプトとみなし、現在の irb インタプリタ上で実 行します。

ファイル path を Ruby スクリプトとみなし、現在の irb インタプリタ上で実
行します。

Kernel.#load と異なり、path の内容を irb で一行ずつタイプしたかの
ように、irb 上で一行ずつ評価されます。

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

@param priv 真を指定した場合は実行は内部的に生成される無名モジュール上
で行われ、グローバルな名前空間を汚染しません。

@raise LoadError 読み込みに失敗した場合に発生します。

IRB::ExtendCommand::Nop#execute(*opts) -> () (36604.0)

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

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

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

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

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

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

@param obj 使用しません。

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

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

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

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

IRB::ExtendCommand::Require#execute(file_name) -> bool (36604.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 (36604.0)

現在の irb インタプリタ上で、 Ruby スクリプト path を評価します。

現在の irb インタプリタ上で、 Ruby スクリプト path を評価します。

path の内容を irb で一行ずつタイプしたかのように、irb 上で一行ずつ評価
されます。$" は更新されず、何度でも実行し直す事ができます。

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

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

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

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

@param obj 使用しません。

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

@todo

@todo

Shell::CommandProcessor#system(command, *opts) -> Shell::SystemCommand (28609.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

Shell::Filter#system(command, *opts) -> Shell::SystemCommand (28609.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

絞り込み条件を変える

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

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

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

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

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

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

@see File.utime

Shell::CommandProcessor#tee(file) -> Shell::Filter (27922.0)

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

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

@param file シェルコマンドtee に与えるファイル名を文字列で指定します。

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

Shell::Filter#tee(file) -> Shell::Filter (27922.0)

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

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

@param file シェルコマンドtee に与えるファイル名を文字列で指定します。

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

Rake::PackageTask#zip_command -> String (27907.0)

zip コマンドとして使用するコマンドを返します。

zip コマンドとして使用するコマンドを返します。

デフォルトは 'zip' です。

Gem::Command#merge_options(new_options) -> Hash (27904.0)

与えられたオプションとデフォルトのオプションをマージします。 しかし、新しいオプションに同一のキーがあってもデフォルトのオプションは変更されません。

与えられたオプションとデフォルトのオプションをマージします。
しかし、新しいオプションに同一のキーがあってもデフォルトのオプションは変更されません。

@param new_options 新しいコマンドオプションをハッシュで指定します。

絞り込み条件を変える

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

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

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

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

@see File.atime

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

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

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

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

@see File.ctime

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

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

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

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

@see File.delete

Shell::CommandProcessor#expand_path(path) -> String (27904.0)

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

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

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

@see File.expand_path

Shell::CommandProcessor#lstat(filename) -> File::Stat (27904.0)

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

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

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

@see File.lstat

絞り込み条件を変える

Shell::CommandProcessor#mtime(filename) -> Time (27904.0)

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

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

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

@see File.mtime

Shell::CommandProcessor#stat(filename) -> File::Stat (27904.0)

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

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

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

@see File.stat

Gem::Command#defaults_str -> String (27622.0)

このメソッドはサブクラスで再定義されます。 コマンドのオプションで使用するデフォルト値を表示するために使用する文字列を返します。

このメソッドはサブクラスで再定義されます。
コマンドのオプションで使用するデフォルト値を表示するために使用する文字列を返します。

@see Gem::Command#arguments

Shell::CommandProcessor#cat(*files) -> Shell::Filter (27622.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#out(dev = STDOUT, &block) -> () (27622.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::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::SystemCommand#name -> String (27607.0)

@todo

@todo

コマンド名を返します。

Gem::Command#add_extra_args(args) -> Array (27604.0)

$HOME/.gemrc から読み込んだ引数を追加します。

$HOME/.gemrc から読み込んだ引数を追加します。

@param args 追加する引数を配列で指定します。

Gem::Command#arguments -> String (27604.0)

このメソッドはサブクラスで再定義されます。 コマンドが取る引数の説明を表示するために使用します。

このメソッドはサブクラスで再定義されます。
コマンドが取る引数の説明を表示するために使用します。

サブクラスで実装する場合は、一つの引数につき一行で、左揃えの文字列を返すようにしてください。

Gem::Command#defaults -> Hash (27604.0)

デフォルトのオプションを返します。

デフォルトのオプションを返します。

絞り込み条件を変える

Gem::Command#description -> String (27604.0)

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

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

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

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

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

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

Gem::Command#get_all_gem_names -> Array (27604.0)

コマンドラインで与えられた Gem の名前を全て取得して返します。

コマンドラインで与えられた Gem の名前を全て取得して返します。

@raise Gem::CommandLineError コマンドライン引数から Gem の名前を取得できない場合に発生します。

Gem::Command#get_one_gem_name -> String (27604.0)

コマンドラインで与えられた Gem の名前を一つ取得して返します。

コマンドラインで与えられた Gem の名前を一つ取得して返します。

@raise Gem::CommandLineError コマンドライン引数から Gem の名前を一つだけ取得できない場合に発生します。

Gem::Command#get_one_optional_argument -> String (27604.0)

コマンドラインからオプショナルな引数を取得して返します。

コマンドラインからオプショナルな引数を取得して返します。

@return 一つ以上、指定した場合は最初の値を返します。一つも指定していない場合は nil を返します。

絞り込み条件を変える

Gem::Command#options -> Hash (27604.0)

コマンドで使用するオプションを返します。

コマンドで使用するオプションを返します。

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

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

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

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

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

Shell::BuiltInCommand#wait? -> false (27604.0)

@todo

@todo

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

@todo

@todo

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

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

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

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

@see FileTest.#directory?

絞り込み条件を変える

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

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

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

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

@see FileTest.#executable?

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

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

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

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

@see FileTest.#executable_real?

Shell::CommandProcessor#exist?(file) -> bool (27604.0)

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

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

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

@see FileTest.#exist? FileTest.#exists?

Shell::CommandProcessor#exists?(file) -> bool (27604.0)

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

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

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

@see FileTest.#exist? FileTest.#exists?

Shell::CommandProcessor#ftype(filename) -> String (27604.0)

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

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

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

@see File.ftype

絞り込み条件を変える

Shell::CommandProcessor#notify(*opts) { ... } -> () (27604.0)

@todo

@todo

Shell::CommandProcessor#setgid?(file) -> bool (27604.0)

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

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

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

@see FileTest.#setgid?

Shell::CommandProcessor#setuid?(file) -> bool (27604.0)

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

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

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

@see FileTest.#setuid?

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

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

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

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

@see FileTest.#socket?

Shell::CommandProcessor#split(pathname) -> [String] (27604.0)

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

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

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

@see File.split

絞り込み条件を変える

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

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

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

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

@see FileTest.#sticky?

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

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

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

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

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

@see File.truncate

Shell::CommandProcessor#writable?(file) -> bool (27604.0)

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

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

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

@see FileTest.#writable?

Shell::CommandProcessor#writable_real?(file) -> bool (27604.0)

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

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

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

@see FileTest.#writable_real?

Shell::SystemCommand#active? -> bool (27604.0)

@todo

@todo

絞り込み条件を変える

Shell::SystemCommand#notify(*opts) -> String (27604.0)

@todo

@todo

@param opts

@see Shell#notify

Shell::SystemCommand#notify(*opts) {|message| ... } -> String (27604.0)

@todo

@todo

@param opts

@see Shell#notify

Shell::SystemCommand#start -> () (27604.0)

@todo

@todo

Shell::SystemCommand#start_import -> () (27604.0)

@todo

@todo

Shell::SystemCommand#wait? -> bool (27604.0)

@todo

@todo

絞り込み条件を変える

Shell#system(command, *opts) -> Shell::SystemCommand (19609.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

Shell::CommandProcessor#test(command, file1, file2 = nil) -> bool | Time | Integer | nil (19228.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::Filter#test(command, file1, file2 = nil) -> bool | Time | Integer | nil (19228.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...

Kernel#try_do(src, command, *opts) -> () (18928.0)

@param src C プログラムのソースコードを指定します。

@param src C プログラムのソースコードを指定します。

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

@param opts オプションを Hash で指定します。

@raise RuntimeError 開発環境がインストールされていない場合に発生します。

@see Kernel#xsystem

Kernel#try_do(src, command, *opts) { ... } -> () (18928.0)

@param src C プログラムのソースコードを指定します。

@param src C プログラムのソースコードを指定します。

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

@param opts オプションを Hash で指定します。

@raise RuntimeError 開発環境がインストールされていない場合に発生します。

@see Kernel#xsystem

絞り込み条件を変える

Kernel#xsystem(command, opts = nil) -> () (18925.0)

Kernel.#system と同じですが、コマンドの出力は(標準出力、標準エラー 出力ともに)ログファイルに出力します。ログファイル名は mkmf.log です。

Kernel.#system と同じですが、コマンドの出力は(標準出力、標準エラー
出力ともに)ログファイルに出力します。ログファイル名は mkmf.log です。

@param command コマンドを指定します。
@param opts オプションを Hash で指定します。
:werror というキーに真を指定すると

@see Kernel.#system

Shell#tee(file) -> Shell::Filter (18922.0)

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

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

@param file シェルコマンドtee に与えるファイル名を文字列で指定します。

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

Kernel#cc_command(opt = "") -> String (18907.0)

実際にコンパイルする際に使用するコマンドを返します。

実際にコンパイルする際に使用するコマンドを返します。

@param opt コンパイラに与える追加のコマンドライン引数を指定します。

@see RbConfig.expand

Kernel#cpp_command(outfile, opt = "") -> String (18907.0)

実際にプリプロセッサを実行する際に使用するコマンドを返します。

実際にプリプロセッサを実行する際に使用するコマンドを返します。

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

@param opt プリプロセッサに与える追加のコマンドライン引数を指定します。

@see RbConfig.expand

Kernel#link_command(ldflags, opt = "", libpath = $DEFLIBPATH|$LIBPATH) -> String (18907.0)

実際にリンクする際に使用するコマンドを返します。

実際にリンクする際に使用するコマンドを返します。

@param ldflags LDFLAGS に追加する値を指定します。

@param opt LIBS に追加する値を指定します。

@param libpath LIBPATH に指定する値を指定します。

@see RbConfig.expand

絞り込み条件を変える

Net::IMAP::FetchData#attr -> { String => object } (18640.0)

各メッセージのアトリビュートの値をハッシュテーブルで返します。

各メッセージのアトリビュートの値をハッシュテーブルで返します。

キーはアトリビュート名の文字列、値はアトリビュートの値となります。
値のクラスはアトリビュートによって異なります。

利用可能なアトリビュートは以下の通りです。

: BODY
BODYSTRUCTURE の拡張データなしの形式。
Net::IMAP::BodyTypeBasic, Net::IMAP::BodyTypeText,
Net::IMAP::BodyTypeMessage, Net::IMAP::BodyTypeMultipart
のいずれか。
: BODY[<section>]<<...

Shell#cat(*files) -> Shell::Filter (18622.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#out(dev = STDOUT, &block) -> () (18622.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#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#cat(*files) -> Shell::Filter (18622.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...

絞り込み条件を変える

<< 1 2 > >>