るりまサーチ

最速Rubyリファレンスマニュアル検索!
33件ヒット [1-33件を表示] (0.170秒)
トップページ > クエリ:IO.new[x] > クエリ:gets[x] > クエリ:each_byte[x] > クエリ:content[x] > クエリ:string[x] > クエリ:Location[x] > クラス:REXML::Instruction[x]

別のキーワード

  1. _builtin each
  2. _builtin each_line
  3. prime each
  4. each
  5. tsort each_strongly_connected_component

ライブラリ

キーワード

検索結果

REXML::Instruction.new(target, content = nil) -> REXML::Instruction (21202.0)

新たな Instruction オブジェクトを生成します。

...新たな Instruction オブジェクトを生成します。

@param target ターゲット
@param content 内容...

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

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

...re '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-stylesheet"
doc[2].content # => "type=\"text/css\" href=\"style.css\...

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

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

...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=\"style.css\""
//...