1540件ヒット
[1-100件を表示]
(0.093秒)
別のキーワード
ライブラリ
クラス
- Array (136)
- BigDecimal (12)
- Binding (7)
- Data (6)
- Exception (48)
- Fiber (6)
-
Gem
:: Version (48) - Hash (24)
- IO (168)
- Integer (12)
-
JSON
:: State (24) - Matrix (48)
-
Matrix
:: LUPDecomposition (12) - Module (63)
- Mutex (2)
- Numeric (48)
- Object (36)
- OptionParser (240)
- Pathname (12)
- Rational (87)
-
RubyVM
:: InstructionSequence (120) - SignalException (24)
- String (153)
- StringScanner (12)
- Struct (6)
- Thread (24)
-
Thread
:: Backtrace :: Location (72) -
Thread
:: ConditionVariable (24) -
Thread
:: Mutex (10) - Time (12)
-
WIN32OLE
_ TYPE (12)
モジュール
- Enumerable (8)
-
OptionParser
:: Arguable (24)
キーワード
- -@ (9)
- <=> (24)
- == (12)
-
absolute
_ path (24) - autoload (12)
-
backtrace
_ locations (24) -
base
_ label (24) - binread (12)
- broadcast (12)
- capitalize! (9)
- cause (12)
- clone (24)
- coerce (12)
- combination (24)
- concat (54)
- configure (12)
- conj (12)
- conjugate (12)
-
const
_ added (3) - deconstruct (3)
-
deconstruct
_ keys (9) -
default
_ event _ sources (12) -
define
_ singleton _ method (24) -
deprecate
_ constant (12) - disasm (12)
- disassemble (12)
- downcase! (9)
- dup (24)
- each (72)
-
each
_ cons (8) -
each
_ line (72) - eigen (12)
- eigensystem (12)
- encode (36)
- encode! (24)
- eql? (12)
- eval (12)
- exception (24)
- fdiv (12)
-
first
_ lineno (12) - inspect (24)
- label (24)
- lineno (12)
- lup (12)
-
lup
_ decomposition (12) - merge (12)
- monday? (12)
- negative? (9)
- nonzero? (24)
-
on
_ head (12) -
on
_ tail (12) - order! (24)
- parse! (12)
-
parse
_ csv (12) - partition (12)
- path (24)
- permutation (24)
- permute! (12)
- positive? (9)
- prerelease? (12)
-
prime
_ division (12) -
private
_ constant (12) -
public
_ constant (12) - quo (12)
- raise (6)
- rationalize (12)
- release (12)
-
repeated
_ combination (24) -
repeated
_ permutation (24) - rpartition (12)
- signal (12)
- signm (12)
- signo (12)
-
singleton
_ class? (12) -
singleton
_ methods (12) - solve (12)
-
source
_ location (7) - summarize (24)
- swapcase! (9)
- synchronize (12)
-
to
_ a (12) -
to
_ csv (12) -
to
_ s (12) - union (7)
- upcase! (9)
検索結果
先頭5件
-
RubyVM
:: InstructionSequence # to _ a -> Array (29041.0) -
self の情報を 14 要素の配列にして返します。
...
self の情報を 14 要素の配列にして返します。
命令シーケンスを以下の情報で表します。
: magic
データフォーマットを示す文字列。常に
"YARVInstructionSequence/SimpleDataFormat"。
: major_version
命令シーケンスのメジャーバー......ジョン。
: minor_version
命令シーケンスのマイナーバージョン。
: format_type
データフォーマットを示す数値。常に 1。
: misc
以下の要素から構成される Hash オブジェクト。
:arg_size: メソッド、ブロックが取る引数の......s
引数の指定が必須のメソッド、ブロックの引数の個数。あるいは以下のよう
な配列。
[required_argc, [optional_arg_labels, ...],
splat_index, post_splat_argc, post_splat_index,
block_index, simple]
より詳細な情報については、vm_core... -
RubyVM
:: InstructionSequence # inspect -> String (29029.0) -
self の情報をラベルとパスを含んだ人間に読みやすい文字列にして返します。
...
self の情報をラベルとパスを含んだ人間に読みやすい文字列にして返します。
//emlist[例][ruby]{
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
iseq.inspect # => "<RubyVM::InstructionSequence:<compiled>@<compiled>>"
//}
@see RubyVM::InstructionSequence#labe......l,
RubyVM::InstructionSequence#path... -
RubyVM
:: InstructionSequence # path -> String (29029.0) -
self が表す命令シーケンスの相対パスを返します。
...
self が表す命令シーケンスの相対パスを返します。
self の作成時に指定した文字列を返します。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.r......b')
> iseq.path # => "method.rb"
@see RubyVM::InstructionSequence#absolute_path... -
RubyVM
:: InstructionSequence # absolute _ path -> String | nil (29023.0) -
self が表す命令シーケンスの絶対パスを返します。
...
self が表す命令シーケンスの絶対パスを返します。
self を文字列から作成していた場合は nil を返します。
例1:irb で実行した場合
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
i......=> 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#pat... -
RubyVM
:: InstructionSequence # label -> String (29023.0) -
self が表す命令シーケンスのラベルを返します。通常、メソッド名、クラス名、 モジュール名などで構成されます。
...
self が表す命令シーケンスのラベルを返します。通常、メソッド名、クラス名、
モジュール名などで構成されます。
トップレベルでは "<main>" を返します。self を文字列から作成していた場合
は "<compiled>" を返します。
例1...... RubyVM::InstructionSequence.compile('num = 1 + 2')
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
iseq.label
# => "<compiled>"
例2: RubyVM::InstructionSequence.compile_file を使用した場合
# /tmp/method.rb
def hello
puts "hello, world"
end
# irb
> iseq = Ruby......VM::InstructionSequence.compile_file('/tmp/method.rb')
> iseq.label # => "<main>"
例3:
# /tmp/method2.rb
def hello
puts "hello, world"
end
RubyVM::InstructionSequence.of(method(:hello)).label
# => "hello"
@see RubyVM::InstructionSequence#base_label... -
RubyVM
:: InstructionSequence # base _ label -> String (29017.0) -
self が表す命令シーケンスの基本ラベルを返します。
...
self が表す命令シーケンスの基本ラベルを返します。
例1:irb で実行した場合
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
iseq.base_label
# => "<compiled>"
例2: RubyVM::InstructionSequence.co......# irb
> iseq = RubyVM::InstructionSequence.compile_file('/tmp/method.rb')
> iseq.base_label # => "<main>"
例3:
# /tmp/method2.rb
def hello
puts "hello, world"
end
RubyVM::InstructionSequence.of(method(:hello)).base_label
# => "hello"
@see RubyVM::InstructionSequence#label... -
RubyVM
:: InstructionSequence # disasm -> String (29017.0) -
self が表す命令シーケンスを人間が読める形式の文字列に変換して返します。
...
self が表す命令シーケンスを人間が読める形式の文字列に変換して返します。
puts RubyVM::InstructionSequence.compile('1 + 2').disasm
出力:
== disasm: <RubyVM::InstructionSequence:<compiled>@<compiled>>==========
0000 trace 1......( 1)
0002 putobject 1
0004 putobject 2
0006 opt_plus <ic:1>
0008 leave
@see RubyVM::InstructionSequence.disasm... -
RubyVM
:: InstructionSequence # disassemble -> String (29017.0) -
self が表す命令シーケンスを人間が読める形式の文字列に変換して返します。
...
self が表す命令シーケンスを人間が読める形式の文字列に変換して返します。
puts RubyVM::InstructionSequence.compile('1 + 2').disasm
出力:
== disasm: <RubyVM::InstructionSequence:<compiled>@<compiled>>==========
0000 trace 1......( 1)
0002 putobject 1
0004 putobject 2
0006 opt_plus <ic:1>
0008 leave
@see RubyVM::InstructionSequence.disasm... -
RubyVM
:: InstructionSequence # eval -> object (29017.0) -
self の命令シーケンスを評価してその結果を返します。
...
self の命令シーケンスを評価してその結果を返します。
RubyVM::InstructionSequence.compile("1 + 2").eval # => 3...