72件ヒット
[1-72件を表示]
(0.076秒)
別のキーワード
ライブラリ
- ビルトイン (24)
-
irb
/ cmd / load (24) -
irb
/ context (24)
クラス
-
IRB
:: Context (24) -
IRB
:: ExtendCommand :: Load (12) -
IRB
:: ExtendCommand :: Source (12) -
RubyVM
:: InstructionSequence (24)
キーワード
-
absolute
_ path (12) - execute (24)
-
irb
_ path (12) -
irb
_ path= (12)
検索結果
先頭5件
-
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 フ...