7件ヒット
[1-7件を表示]
(0.071秒)
別のキーワード
ライブラリ
- ビルトイン (2)
-
irb
/ cmd / load (1) -
irb
/ ext / use-loader (4)
クラス
- Binding (1)
-
IRB
:: Context (3) -
IRB
:: ExtendCommand :: Require (1) -
RubyVM
:: InstructionSequence (1)
モジュール
キーワード
- execute (1)
-
first
_ lineno (1) -
irb
_ require (1) -
use
_ loader (1) -
use
_ loader= (1) -
use
_ loader? (1)
検索結果
先頭5件
-
Binding
# irb -> object (54379.0) -
REPLのセッションを開始します。
REPLのセッションを開始します。
2.5.0 からは require 'irb' せずに直接 binding.irb を呼び出しても使えるようになりました。
@see irb -
IRB
:: ExtendCommandBundle # irb _ require(*opts , &b) -> bool (45838.0) -
現在の irb に関する IRB::Context に対して irb_require コマンドを 実行します。
現在の irb に関する IRB::Context に対して irb_require コマンドを
実行します。
@see IRB::ExtendCommand::Require#execute -
IRB
:: ExtendCommand :: Require # execute(file _ name) -> bool (18142.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
:: Context # use _ loader=(opt) (9280.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 (9262.0) -
load または require 時に irb のファイル読み込み機能(irb_load、 irb_require)を使うかどうかを返します。
load または require 時に irb のファイル読み込み機能(irb_load、
irb_require)を使うかどうかを返します。
@see IRB::Context#use_loader= -
IRB
:: Context # use _ loader? -> bool (9262.0) -
load または require 時に irb のファイル読み込み機能(irb_load、 irb_require)を使うかどうかを返します。
load または require 時に irb のファイル読み込み機能(irb_load、
irb_require)を使うかどうかを返します。
@see IRB::Context#use_loader= -
RubyVM
:: InstructionSequence # first _ lineno -> Integer (40.0) -
self が表す命令シーケンスの 1 行目の行番号を返します。
self が表す命令シーケンスの 1 行目の行番号を返します。
例1:irb で実行した場合
RubyVM::InstructionSequence.compile('num = 1 + 2').first_lineno
# => 1
例2:
# /tmp/method.rb
require "foo-library"
def foo
p :foo
end
RubyVM::InstructionSequence.of(method(:foo)).first_lineno
# => 2