るりまサーチ

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

別のキーワード

  1. irb/input-method new
  2. irb/input-method gets
  3. irb/cmd/subirb execute
  4. irb/cmd/load execute
  5. irb/cmd/pushws execute

検索結果

RubyVM::InstructionSequence#path -> String (18132.0)

self が表す命令シーケンスの相対パスを返します。

...ら作成していた
場合は "<compiled>" を返します。

例1:irb で実行した場合

iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
iseq.path
# => "<compiled>"

例2: RubyVM::InstructionSequence.compile_file を...
...使用した場合

# /tmp/method.rb
def hello
puts "hello, world"
end

# irb
> iseq = RubyVM::InstructionSequence.compile_file('method.rb')
> iseq.path # => "method.rb"

@see RubyVM::InstructionSequence#absolute_path...

IRB::Context#irb_path -> String (15203.0)

ライブラリ内部で使用します。

ライブラリ内部で使用します。

IRB::Context#irb_path=(val) (15203.0)

ライブラリ内部で使用します。

ライブラリ内部で使用します。

RubyVM::InstructionSequence#absolute_path -> String | nil (6132.0)

self が表す命令シーケンスの絶対パスを返します。

...列から作成していた場合は nil を返します。

例1:irb で実行した場合

iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
iseq.absolute_path
# => nil

例2: RubyVM::InstructionSequence.compile_file を使...
...用した場合

# /tmp/method.rb
def hello
puts "hello, world"
end

# irb
> iseq = RubyVM::InstructionSequence.compile_file('/tmp/method.rb')
> iseq.absolute_path # => "/tmp/method.rb"

@see RubyVM::InstructionSequence#path...

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

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

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

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

@param file_name ファイル名を文...

絞り込み条件を変える

IRB::ExtendCommand::Source#execute(file_name) -> nil (3051.0)

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

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

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

@param file_name フ...