るりまサーチ

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

別のキーワード

  1. rexml/document new
  2. rexml/document write
  3. rexml/document clone
  4. rexml/document to_s
  5. rexml/document node_type

検索結果

<< 1 2 > >>

REXML::StreamListener#instruction(name, instruction) -> () (21215.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\""
という引...

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

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

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

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

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

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

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

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

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

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

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

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

self を複製します。

self を複製します。

絞り込み条件を変える

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

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

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

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

@param other 比較対象...

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

Symbol :processing_instruction を返します。

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

REXML::Instruction#content -> String | nil (6013.0)

XML 処理命令の内容を返します。

...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"?>
<?foobar?>
<root />
EOS
doc[2] # => <?p-i xml-stylesheet ...?>
doc[2].target # => "xml-...

REXML::Instruction#target -> String (6013.0)

XML 処理命令のターゲットを返します。

...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-st...
<< 1 2 > >>