132件ヒット
[101-132件を表示]
(0.118秒)
ライブラリ
- ビルトイン (60)
-
rdoc
/ top _ level (24) - uri (48)
クラス
-
RDoc
:: TopLevel (24) -
RubyVM
:: InstructionSequence (36) -
Thread
:: Backtrace :: Location (24) -
URI
:: Generic (48)
キーワード
- - (12)
- absolute? (12)
-
absolute
_ path (24) -
file
_ absolute _ name (12) -
file
_ absolute _ name= (12) - path (24)
-
route
_ from (12) -
to
_ a (12)
検索結果
先頭3件
-
RubyVM
:: InstructionSequence # to _ a -> Array (3031.0) -
self の情報を 14 要素の配列にして返します。
...4 要素の配列にして返します。
命令シーケンスを以下の情報で表します。
: magic
データフォーマットを示す文字列。常に
"YARVInstructionSequence/SimpleDataFormat"。
: major_version
命令シーケンスのメジャーバージョン。
: minor_......1。
: misc
以下の要素から構成される Hash オブジェクト。
:arg_size: メソッド、ブロックが取る引数の総数(1 つもない場合は 0)。
:local_size: ローカル変数の総数 + 1。
:stack_max: スタックの深さ。(SystemStackError を検出......ップレベルでは "<main>"。文字列から作成していた場合は
"<compiled>"。
: #path
命令シーケンスの相対パス。文字列から作成していた場合は "<compiled>"。
: #absolute_path
命令シーケンスの絶対パス。文字列から作成していた場... -
Thread
:: Backtrace :: Location # path -> String (3019.0) -
self が表すフレームのファイル名を返します。
...self が表すフレームのファイル名を返します。
例: Thread::Backtrace::Location の例1を用いた例
//emlist[][ruby]{
loc = c(0..1).first
loc.path # => "caller_locations.rb"
//}
@see Thread::Backtrace::Location#absolute_path... -
RubyVM
:: InstructionSequence # path -> String (3007.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...