るりまサーチ

最速Rubyリファレンスマニュアル検索!
473件ヒット [1-100件を表示] (0.121秒)
トップページ > クエリ:i[x] > クエリ:Instruction[x]

別のキーワード

  1. _builtin to_i
  2. fiddle to_i
  3. matrix elements_to_i
  4. matrix i
  5. ipaddr to_i

検索結果

<< 1 2 3 ... > >>

REXML::Instruction (24022.0)

XML 処理命令(XML Processing Instruction, XML PI)を表すクラス。

...処理命令(XML Processing Instruction, XML PI)を表すクラス。

XML 処理命令 とは XML 文書中の <? と ?> で挟まれた部分のことで、
アプリケーションへの指示を保持するために使われます。

XML 宣言(文書先頭の <?xml version=... ?>)はXML処理...
...が、
似た見た目を持っています。

//emlist[][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-styleshe...

TracePoint#instruction_sequence -> RubyVM::InstructionSequence (15407.0)

script_compiledイベント発生時にコンパイルされた RubyVM::InstructionSequenceインスタンスを返します。

...script_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...
...("puts 'hello'")
end
//}

@raise RuntimeError :script_compiled イベントのための
イベントフックの外側で実行した場合に発生します。...

REXML::SAX2Listener#processing_instruction(target, data) -> () (15301.0)

XML 処理命令(PI)に対し呼び出されるコールバックメソッドです。

...XML 処理命令(PI)に対し呼び出されるコールバックメソッドです。

@param target ターゲット名が文字列で渡されます
@param data 処理命令の内容が文字列で渡されます...

RubyVM::InstructionSequence.compile_file(file, options = nil) -> RubyVM::InstructionSequence (12500.0)

引数 file で指定した Ruby のソースコードを元にコンパイル済みの RubyVM::InstructionSequence オブジェクトを作成して返します。

...file で指定した Ruby のソースコードを元にコンパイル済みの
RubyVM::InstructionSequence オブジェクトを作成して返します。

RubyVM::InstructionSequence.compile とは異なり、file、path などの
メタデータは自動的に取得します。

@param file...
...tions コンパイル時のオプションを true、false、Hash オブ
ジェクトのいずれかで指定します。詳細は
RubyVM::InstructionSequence.compile_option= を参照
してください。

# /tmp/hello.rb
puts "Hello, world!"

# i...
...rb
RubyVM::InstructionSequence.compile_file("/tmp/hello.rb")
# => <RubyVM::InstructionSequence:<main>@/tmp/hello.rb>

@see RubyVM::InstructionSequence.compile...

REXML::StreamListener#instruction(name, instruction) -> () (12414.0)

XML処理命令(PI)をパースしたときに呼び出されるコールバックメソッドです。

...(PI)をパースしたときに呼び出されるコールバックメソッドです。

@param name ターゲット名が文字列で渡されます
@param instruction 処理命令の内容が文字列で渡されます

=== 例
<?xml-stylesheet type="text/css" href="style.css"?>
というPI...
...対し
name: "xml-stylesheet"
instruction
: " type=\"text/css\" href=\"style.css\""
という引数が渡されます。...

絞り込み条件を変える

RubyVM::InstructionSequence.load_from_binary(binary) -> RubyVM::InstructionSequence (12400.0)

RubyVM::InstructionSequence#to_binaryにより作られたバイナリフォーマットの文字列からiseqのオブジェクトをロードします。

...RubyVM::InstructionSequence#to_binaryにより作られたバイナリフォーマットの文字列からiseqのオブジェクトをロードします。

このローダーは検証機構をもっておらず、壊れたり改変されたバイナリを読み込むと深刻な問題を引き起...
...りません。自分が変換したバイナリデータを使うべきです。

//emlist[例][ruby]{
i
seq = RubyVM::InstructionSequence.compile('num = 1 + 2')
binary = iseq.to_binary
RubyVM::InstructionSequence.load_from_binary(binary).eval # => 3
//}

@see RubyVM::InstructionSequence#to_binary...

REXML::Element#instructions -> [REXML::Instraction] (12316.0)

すべての instruction 子ノードの配列を返します。

...すべての instruction 子ノードの配列を返します。

返される配列は freeze されます。...

RubyVM::INSTRUCTION_NAMES -> [String] (12301.0)

RubyVM の命令シーケンスの名前の一覧を返します。

...RubyVM の命令シーケンスの名前の一覧を返します。

@see RubyVM::InstructionSequence...

RubyVM::InstructionSequence.load_from_binary_extra_data(binary) -> String (12300.0)

バイナリフォーマットの文字列から埋め込まれたextra_dataを取り出します。

...埋め込まれたextra_dataを取り出します。

//emlist[例][ruby]{
i
seq = 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...

REXML::Parsers::PullEvent#instruction? -> bool (12201.0)

XML処理命令なら真を返します。

XML処理命令なら真を返します。

絞り込み条件を変える

<< 1 2 3 ... > >>