るりまサーチ

最速Rubyリファレンスマニュアル検索!
305件ヒット [1-100件を表示] (0.084秒)

別のキーワード

  1. _builtin >
  2. bigdecimal >
  3. integer >
  4. float >
  5. comparable >

検索結果

<< 1 2 3 ... > >>

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

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

...e ターゲット名が文字列で渡されます
@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 (6314.0)

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

...発生時にコンパイルされた
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
//}

@r...

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

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

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

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

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

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

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

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

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

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

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

絞り込み条件を変える

REXML::Instruction#clone -> REXML::Instruction (3202.0)

self を複製します。

self を複製します。

REXML::Instruction#node_type -> Symbol (3117.0)

Symbol :processing_instruction を返します。

...Symbol :processing_instruction を返します。...

REXML::Instruction#==(other) -> bool (3113.0)

other と self が同じ 処理命令である場合に真を返します。

...other と self が同じ 処理命令である場合に真を返します。

同じとは、 REXML::Instruction#target と REXML::Instruction#content
が一致することを意味します。

@param other 比較対象...

RubyVM::InstructionSequence#absolute_path -> String | nil (3113.0)

self が表す命令シーケンスの絶対パスを返します。

...= RubyVM::InstructionSequence.compile('num = 1 + 2')
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
iseq.absolute_path
# => nil

例2: RubyVM::InstructionSequence.compile_file を使用した場合

# /tmp/method.rb
def hello
puts "hello, world"
end

# irb
>
iseq = Rub...
...yVM::InstructionSequence.compile_file('/tmp/method.rb')
>
iseq.absolute_path # => "/tmp/method.rb"

@see RubyVM::InstructionSequence#path...
<< 1 2 3 ... > >>