329件ヒット
[301-329件を表示]
(0.146秒)
ライブラリ
- ビルトイン (137)
-
rexml
/ document (96) -
rexml
/ parsers / pullparser (12) -
rexml
/ parsers / sax2parser (60) -
rexml
/ sax2listener (12) -
rexml
/ streamlistener (12)
クラス
-
REXML
:: Element (12) -
REXML
:: Instruction (84) -
REXML
:: Parsers :: PullEvent (12) -
REXML
:: Parsers :: SAX2Parser (60) -
RubyVM
:: InstructionSequence (130) - TracePoint (7)
モジュール
-
REXML
:: SAX2Listener (12) -
REXML
:: StreamListener (12)
キーワード
- == (12)
-
absolute
_ path (12) -
base
_ label (12) - clone (12)
- content (12)
- content= (12)
- disasm (12)
- disassemble (12)
- eval (12)
-
first
_ lineno (12) - inspect (12)
- instruction? (12)
-
instruction
_ sequence (7) - instructions (12)
- label (12)
- listen (60)
-
node
_ type (12) - path (12)
-
processing
_ instruction (12) - target (12)
- target= (12)
-
to
_ a (12) -
to
_ binary (10)
検索結果
先頭3件
-
RubyVM
:: InstructionSequence # disassemble -> String (6101.0) -
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 (6101.0) -
self の命令シーケンスを評価してその結果を返します。
...self の命令シーケンスを評価してその結果を返します。
RubyVM::InstructionSequence.compile("1 + 2").eval # => 3... -
RubyVM
:: InstructionSequence # label -> String (6101.0) -
self が表す命令シーケンスのラベルを返します。通常、メソッド名、クラス名、 モジュール名などで構成されます。
...: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 = RubyVM::Inst......ructionSequence.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...