るりまサーチ

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

別のキーワード

  1. pstore root?
  2. document root
  3. psych root
  4. pathname root?
  5. rexml/document root

ライブラリ

検索結果

REXML::Formatters::Transitive (18072.0)

XMLドキュメントをテキストの内容を変えずに 多少の整形を加えて出力するクラスです。

...ire 'rexml/formatters/transitive'
doc = REXML::Document.new <<EOS
<root><children>
<grandchildren foo='bar' />
</children></root>
EOS

transitive
_formatter = REXML::Formatters::Transitive.new
output = StringIO.new
transitive
_formatter.write(doc, output)
output.string
# => "<root\n><children\n >\n<g...
...foo='bar'\n />\n</children\n ></root\n>\n"
print output.string
# >> <root
# >> ><children
# >> >
# >> <grandchildren foo='bar'
# >> />
# >> </children
# >> ></root
# >> >

output = StringIO.new
transitive
_formatter.write(REXML::XPath.first(doc, "/root/children"), output)
output.string
#...