種類
- インスタンスメソッド (11)
- 特異メソッド (7)
- ライブラリ (2)
- クラス (1)
- 文書 (1)
ライブラリ
- ビルトイン (3)
-
irb
/ cmd / load (2) -
irb
/ context (1) -
irb
/ ext / use-loader (4) -
irb
/ extend-command (3) - openssl (1)
- psych (2)
- rake (1)
-
rubygems
/ source _ index (2)
クラス
- Complex (1)
-
Gem
:: SourceIndex (2) -
IRB
:: Context (4) -
IRB
:: ExtendCommand :: Load (1) -
OpenSSL
:: X509 :: ExtensionFactory (1) -
Rake
:: Application (1) -
RubyVM
:: InstructionSequence (2)
モジュール
-
IRB
:: ContextExtender (1) -
IRB
:: ExtendCommandBundle (3) - Psych (2)
キーワード
- Ruby用語集 (1)
-
add
_ loader (1) - config= (1)
-
def
_ extend _ command (2) - execute (1)
-
install
_ extend _ commands (1) -
irb
/ ext / loader (1) -
irb
/ ext / use-loader (1) -
irb
_ load (1) - load (1)
-
load
_ from _ binary _ extra _ data (1) -
load
_ gems _ in (1) -
load
_ modules (1) -
load
_ specification (1) -
marshal
_ dump (1) - parse (1)
-
to
_ binary (1) -
use
_ loader (1) -
use
_ loader= (1) -
use
_ loader? (1)
検索結果
先頭5件
-
IRB
:: ExtendCommand :: Load (81049.0) -
irb 中の irb_load コマンドのための拡張を定義したクラスです。
irb 中の irb_load コマンドのための拡張を定義したクラスです。 -
RubyVM
:: InstructionSequence . load _ from _ binary _ extra _ data(binary) -> String (54922.0) -
バイナリフォーマットの文字列から埋め込まれたextra_dataを取り出します。
バイナリフォーマットの文字列から埋め込まれたextra_dataを取り出します。
//emlist[例][ruby]{
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
binary = iseq.to_binary("extra_data")
RubyVM::InstructionSequence.load_from_binary_extra_data(binary) # => extra_data
//}
@see RubyVM::InstructionSequence#to_binary -
irb
/ ext / loader (54115.0) -
load または require 時の irb のファイル読み込み機能(irb_load、 irb_require)を定義するサブライブラリです。
load または require 時の irb のファイル読み込み機能(irb_load、
irb_require)を定義するサブライブラリです。
このライブラリで定義されているメソッドはユーザが直接使用するものではあ
りません。irb/cmd/load や irb/ext/use-loader から呼び出
されます。 -
irb
/ ext / use-loader (54097.0) -
load または require 時に irb のファイル読み込み機能(irb_load、 irb_require)を使うように設定する機能を提供するサブライブラリです。
load または require 時に irb のファイル読み込み機能(irb_load、
irb_require)を使うように設定する機能を提供するサブライブラリです。
このライブラリで定義されているメソッドはユーザが直接使用するものではありません。 -
IRB
:: Context # use _ loader -> bool (45697.0) -
load または require 時に irb のファイル読み込み機能(irb_load、 irb_require)を使うかどうかを返します。
load または require 時に irb のファイル読み込み機能(irb_load、
irb_require)を使うかどうかを返します。
@see IRB::Context#use_loader= -
IRB
:: Context # use _ loader=(opt) (45697.0) -
load または require 時に irb のファイル読み込み機能(irb_load、 irb_require)を使うかどうかを設定します。
load または require 時に irb のファイル読み込み機能(irb_load、
irb_require)を使うかどうかを設定します。
.irbrc ファイル中で IRB.conf[:USE_LOADER] を設定する事でも同様の事が行
えます。
デフォルト値は false です。
@see IRB::Context#use_loader? -
IRB
:: Context # use _ loader? -> bool (45697.0) -
load または require 時に irb のファイル読み込み機能(irb_load、 irb_require)を使うかどうかを返します。
load または require 時に irb のファイル読み込み機能(irb_load、
irb_require)を使うかどうかを返します。
@see IRB::Context#use_loader= -
IRB
:: ExtendCommandBundle # irb _ load(*opts , &b) -> nil (45670.0) -
現在の irb に関する IRB::Context に対して irb_load コマンドを実行 します。
現在の irb に関する IRB::Context に対して irb_load コマンドを実行
します。
@see IRB::ExtendCommand::Load#execute -
IRB
:: Context # load _ modules -> [String] (45652.0) -
irb の起動時に -r オプション指定で読み込まれたライブラリ、~/.irbrc など の設定ファイル内で IRB.conf[:LOAD_MODULES] 指定で読み込まれたライブラリ の名前の配列を返します。
irb の起動時に -r オプション指定で読み込まれたライブラリ、~/.irbrc など
の設定ファイル内で IRB.conf[:LOAD_MODULES] 指定で読み込まれたライブラリ
の名前の配列を返します。 -
IRB
:: ExtendCommand :: Load # execute(file _ name , priv = nil) -> nil (45619.0) -
ファイル path を Ruby スクリプトとみなし、現在の irb インタプリタ上で実 行します。
ファイル path を Ruby スクリプトとみなし、現在の irb インタプリタ上で実
行します。
Kernel.#load と異なり、path の内容を irb で一行ずつタイプしたかの
ように、irb 上で一行ずつ評価されます。
@param file_name ファイル名を文字列で指定します。
@param priv 真を指定した場合は実行は内部的に生成される無名モジュール上
で行われ、グローバルな名前空間を汚染しません。
@raise LoadError 読み込みに失敗した場合に発生します。 -
IRB
:: ExtendCommandBundle . install _ extend _ commands -> object (45619.0) -
定義済みの拡張を読み込みます。
定義済みの拡張を読み込みます。
irb で以下のメソッドが利用できるようになります。(それぞれ 1 つだけ抜粋)
* irb_current_working_workspace
* irb_change_workspace
* irb_workspaces
* irb_push_workspace
* irb_pop_workspace
* irb_load
* irb_require
* irb_source
* irb
* irb_jobs
* irb_fg
* irb_kill
* irb_help
irb/extend-command が requir... -
Gem
:: SourceIndex # load _ gems _ in(*spec _ dirs) -> self (45604.0) -
引数で与えられたディレクトリに含まれる gemspec から自身を再構築して返します。
引数で与えられたディレクトリに含まれる gemspec から自身を再構築して返します。
@param spec_dirs gemspec の含まれているディレクトリを複数指定します。 -
Gem
:: SourceIndex . load _ specification(file _ name) -> Gem :: Specification | nil (45604.0) -
与えられたファイル名から Ruby スクリプト形式の gemspec をロードして Gem::Specification のインスタンスを返します。
与えられたファイル名から Ruby スクリプト形式の gemspec をロードして
Gem::Specification のインスタンスを返します。
@param file_name ファイル名を指定します。
@raise SignalException gemspec をロードしているときに発生します。
@raise SystemExit gemspec をロードしているときに発生します。 -
Rake
:: Application # add _ loader(ext , loader) (37519.0) -
与えられた拡張子で終わるファイル名のファイルをロードするためのローダーを 自身に追加します。
与えられた拡張子で終わるファイル名のファイルをロードするためのローダーを
自身に追加します。
@param ext 拡張子を指定します。
@param loader ローダーを指定します。
//emlist[例][ruby]{
require "rake/loaders/makefile"
# Rakefile での記載例とする
task default: :test
task :test
makefile =<<-EOS
<< <<-'SAMPLE_MF'
# Comments
a: a1 a2 a3 a4
EOS
IO.write("sample.mf", makefile)... -
IRB
:: ContextExtender . def _ extend _ command(cmd _ name , load _ file , *aliases) -> object (36922.0) -
IRB::Context に cmd_name で指定したメソッドが実行できるように拡張 します。
IRB::Context に cmd_name で指定したメソッドが実行できるように拡張
します。
@param cmd_name メソッド名を Symbol で指定します。
IRB::Context クラスのインスタンスメソッドとして定
義してある必要があります。
@param load_file cmd_name で指定したメソッドが定義されたファイル名を指
定します。このファイルは自動的に require されます。
@param aliases cmd_name の別名を Symb... -
IRB
:: ExtendCommandBundle . def _ extend _ command(cmd _ name , cmd _ class , load _ file = nil , *aliases) -> object (36922.0) -
irb に cmd_name で指定したメソッドが実行できるように拡張します。
irb に cmd_name で指定したメソッドが実行できるように拡張します。
@param cmd_name メソッド名を Symbol か文字列で指定します。
cmd_class で指定するクラスの execute メソッドとして定
義してある必要があります。
@param cmd_class 指定した拡張が定義されたクラス名を Symbol、
String、Class のいずれかで指定します。
なお、このクラスは IRB::ExtendCommand ... -
Psych
. load(yaml , filename = nil , fallback = false) -> object (36712.0) -
YAML ドキュメントを Ruby のデータ構造(オブジェクト)に変換します。
YAML ドキュメントを Ruby のデータ構造(オブジェクト)に変換します。
入力に複数のドキュメントが含まれている場合は、先頭のものを変換して
返します。
filename はパース中に発生した例外のメッセージに用います。
@param yaml YAML ドキュメント(文字列 or IO オブジェクト)
@param filename Psych::SyntaxError 発生時にファイル名として表示する文字列。
@param fallback 引数 yaml に空のYAMLを指定した場合の戻り値を指定します。デフォルトは false です。
@raise Psych::Syn... -
Complex
# marshal _ dump -> Array (27415.0) -
Marshal.#load のためのメソッドです。 Complex::compatible#marshal_load で復元可能な配列を返します。
Marshal.#load のためのメソッドです。
Complex::compatible#marshal_load で復元可能な配列を返します。
2.0 以降では Marshal.#load で 1.8 系の Complex オブジェクト
を保存した文字列も復元できます。
[注意] Complex::compatible は通常の方法では参照する事ができません。 -
OpenSSL
:: X509 :: ExtensionFactory # config=(config) (18019.0) -
自身にコンフィグファイルオブジェクトを設定します。
自身にコンフィグファイルオブジェクトを設定します。
例
require 'openssl'
factory.config = OpenSSL::Config.load(OpenSSL::Config::DEFAULT_CONFIG_FILE)
@param config 設定ファイル(OpenSSL::Config オブジェクト) -
Ruby用語集 (9145.0)
-
Ruby用語集 A B C D E F G I J M N O R S Y
Ruby用語集
A B C D E F G I J M N O R S Y
a ka sa ta na ha ma ya ra wa
=== 記号・数字
: %記法
: % notation
「%」記号で始まる多種多様なリテラル記法の総称。
参照:d:spec/literal#percent
: 0 オリジン
: zero-based
番号が 0 から始まること。
例えば、
Array や Vector、Matrix などの要素の番号、
String における文字の位置、
といったものは 0 オリジンである。
: 1 オリジン
: one-based
... -
RubyVM
:: InstructionSequence # to _ binary(extra _ data = nil) -> String (703.0) -
バイナリフォーマットでシリアライズされたiseqのデータを文字列として返します。 RubyVM::InstructionSequence.load_from_binary メソッドでバイナリデータに対応するiseqオブジェクトを作れます。
バイナリフォーマットでシリアライズされたiseqのデータを文字列として返します。
RubyVM::InstructionSequence.load_from_binary メソッドでバイナリデータに対応するiseqオブジェクトを作れます。
引数の extra_data はバイナリデータと共に保存されます。
RubyVM::InstructionSequence.load_from_binary_extra_data メソッドでこの文字列にアクセス出来ます。
注意: 変換後のバイナリデータはポータブルではありません。 to_binary で得たバイナリデータは他のマシンに移動できません。他... -
Psych
. parse(yaml , filename = nil) -> Psych :: Nodes :: Document (373.0) -
YAML ドキュメントをパースし、YAML の AST を返します。
YAML ドキュメントをパースし、YAML の AST を返します。
入力に複数のドキュメントが含まれている場合は、先頭のものを AST に変換して
返します。
filename はパース中に発生した例外のメッセージに用います。
AST については Psych::Nodes を参照してください。
@param yaml YAML ドキュメント(文字列 or IO オブジェクト)
@param filename Psych::SyntaxError 発生時にファイル名として表示する文字列。
@raise Psych::SyntaxError YAMLドキュメントに文法エラーが発見されたと...