541件ヒット
[1-100件を表示]
(0.171秒)
ライブラリ
- ビルトイン (277)
-
rexml
/ document (132) -
rexml
/ parsers / pullparser (12) -
rexml
/ parsers / sax2parser (60) -
rexml
/ sax2listener (12) -
rexml
/ streamlistener (12)
クラス
-
REXML
:: Element (12) -
REXML
:: Instruction (96) -
REXML
:: Parsers :: PullEvent (12) -
REXML
:: Parsers :: SAX2Parser (60) - RubyVM (12)
-
RubyVM
:: InstructionSequence (246) - TracePoint (7)
モジュール
-
REXML
:: SAX2Listener (12) -
REXML
:: StreamListener (12)
キーワード
- == (12)
- Document (12)
-
INSTRUCTION
_ NAMES (12) - InstructionSequence (12)
-
NEWS for Ruby 2
. 0 . 0 (12) -
absolute
_ path (12) -
base
_ label (12) - clone (12)
- compile (12)
-
compile
_ file (12) -
compile
_ option (12) -
compile
_ option= (12) - content (12)
- content= (12)
- disasm (24)
- disassemble (24)
- eval (12)
-
first
_ lineno (12) - inspect (12)
- instruction (12)
- instruction? (12)
-
instruction
_ sequence (7) - instructions (12)
- label (12)
- listen (60)
-
load
_ from _ binary (10) -
load
_ from _ binary _ extra _ data (10) - new (24)
-
node
_ type (12) - of (12)
- path (12)
-
processing
_ instruction (12) -
rexml
/ parsers / streamparser (12) -
rexml
/ parsers / ultralightparser (12) - target (12)
- target= (12)
-
to
_ a (12) -
to
_ binary (10)
検索結果
先頭5件
-
REXML
:: Instruction (24016.0) -
XML 処理命令(XML Processing Instruction, XML PI)を表すクラス。
...XML 処理命令(XML Processing Instruction, XML PI)を表すクラス。
XML 処理命令 とは XML 文書中の <? と ?> で挟まれた部分のことで、
アプリケーションへの指示を保持するために使われます。
XML 宣言(文書先頭の <?xml version=... ?>)はXML処......ist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/css" href="style.css"?>
<root />
EOS
doc[2] # => <?p-i xml-stylesheet ...?>
doc[2].target # => "xml-stylesheet"
doc[2].content # => "type=\"text/css\" href=\"sty... -
REXML
:: StreamListener # instruction(name , instruction) -> () (15414.0) -
XML処理命令(PI)をパースしたときに呼び出されるコールバックメソッドです。
...名が文字列で渡されます
@param instruction 処理命令の内容が文字列で渡されます
=== 例
<?xml-stylesheet type="text/css" href="style.css"?>
というPIに対し
name: "xml-stylesheet"
instruction: " type=\"text/css\" href=\"style.css\""
という引数が渡されま... -
TracePoint
# instruction _ sequence -> RubyVM :: InstructionSequence (15407.0) -
script_compiledイベント発生時にコンパイルされた RubyVM::InstructionSequenceインスタンスを返します。
...pt_compiledイベント発生時にコンパイルされた
RubyVM::InstructionSequenceインスタンスを返します。
//emlist[例][ruby]{
TracePoint.new(:script_compiled) do |tp|
p tp.instruction_sequence # => <RubyVM::InstructionSequence:block in <main>@(eval):1>
end.enable do
eval("put......s 'hello'")
end
//}
@raise RuntimeError :script_compiled イベントのための
イベントフックの外側で実行した場合に発生します。... -
REXML
:: Element # instructions -> [REXML :: Instraction] (12316.0) -
すべての instruction 子ノードの配列を返します。
...すべての instruction 子ノードの配列を返します。
返される配列は freeze されます。... -
RubyVM
:: INSTRUCTION _ NAMES -> [String] (12301.0) -
RubyVM の命令シーケンスの名前の一覧を返します。
...RubyVM の命令シーケンスの名前の一覧を返します。
@see RubyVM::InstructionSequence... -
REXML
:: Parsers :: PullEvent # instruction? -> bool (12201.0) -
XML処理命令なら真を返します。
XML処理命令なら真を返します。 -
REXML
:: SAX2Listener # processing _ instruction(target , data) -> () (12201.0) -
XML 処理命令(PI)に対し呼び出されるコールバックメソッドです。
...XML 処理命令(PI)に対し呼び出されるコールバックメソッドです。
@param target ターゲット名が文字列で渡されます
@param data 処理命令の内容が文字列で渡されます... -
RubyVM
:: InstructionSequence . load _ from _ binary _ extra _ data(binary) -> String (12200.0) -
バイナリフォーマットの文字列から埋め込まれたextra_dataを取り出します。
...埋め込まれたextra_dataを取り出します。
//emlist[例][ruby]{
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
binary = iseq.to_binary("extra_data")
RubyVM::InstructionSequence.load_from_binary_extra_data(binary) # => extra_data
//}
@see RubyVM::InstructionSequence#to_binary... -
RubyVM
:: InstructionSequence (12000.0) -
Ruby の Virtual Machine のコンパイル済みの命令シーケンスを表すクラスです。
...Ruby の Virtual Machine のコンパイル済みの命令シーケンスを表すクラスです。
Method、Proc オブジェクトや Ruby のソースコードを表す文字列
から VM の命令シーケンスを得る事ができます。また、
RubyVM::InstructionSequence オブジェク......コンパイラの設定を
扱う必要がありますが、Ruby の VM がどのように働くかを知るのに有用です。
VM の命令シーケンスの一覧はRuby のソースコード中の insns.def から参照で
きます。
* https://github.com/ruby/ruby/blob/master/insns.def...