るりまサーチ

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

別のキーワード

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

ライブラリ

キーワード

検索結果

<< 1 2 > >>

Net::IMAP::MailboxQuotaRoot (6017.0)

Net::IMAP#getquotaroot の結果として得られる quota root 情報を表わすオブジェクトです。

...Net::IMAP#getquotaroot の結果として得られる
quota root 情報を表わすオブジェクトです。

詳しくは 2087 を参照してください。...

REXML::Formatters::Default (43.0)

XMLドキュメントを(文字列として)出力するクラスです。

...XML::Document.new <<EOS
<root>
<children>
<grandchildren/>
</children>
</root>
EOS

default_formatter = REXML::Formatters::Default.new
output = StringIO.new
default_formatter.write(doc, output)
output.string
# => "<root>\n<children>\n <grandchildren/>\n</children>\n</root>\n"

output = StringIO.n...
...doc, "/root/children"), output)
output.string
# => "<children>\n <grandchildren/>\n</children>"

ie_hack_formatter = REXML::Formatters::Default.new(true)
output = StringIO.new
ie_hack_formatter.write(doc, output)
output.string
# => "<root>\n<children>\n <grandchildren />\n</children>\n</root>\n"
/...

REXML::Formatters::Transitive (43.0)

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

...<<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<grandchildren 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
# => "<children\n>\n<grandchildren foo='bar'\n /...

REXML::Comment (25.0)

XML コメントを表すクラス。

...コメントとは <!-- と --> で挟まれたテキストです。

//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<!-- xx -->
<root>
<!-- yy -->
text
<!-- zz -->
</root>
EOS

doc[0].string # => " xx "
doc.root[1].string # => " yy "
doc.root[3].string # => " zz "
//}...

REXML::Formatters::Pretty (25.0)

XMLドキュメントを(文字列として)見た目良く出力するクラスです。

...nt.new <<EOS
<root>
<children>
<grandchildren foo='bar'/>
</children>
</root>
EOS

pretty_formatter = REXML::Formatters::Pretty.new
output = StringIO.new
pretty_formatter.write(doc, output)
output.string
# => "<root>\n <children>\n <grandchildren foo='bar'/>\n </children>\n</root>"
# この...

絞り込み条件を変える

PStore (13.0)

Rubyのオブジェクトを外部ファイルに格納するためのクラスです。 内部で Marshal を使っています。

...ます。
インターフェースは Hash に似ています。

require 'pstore'
db = PStore.new("/tmp/foo")
db.transaction do
p db.roots # => []
ary = db["root"] = [1,2,3,4]
ary[0] = [1,1.5]
end

db.transaction do
p db["root"] # => [[1, 1.5], 2, 3, 4]
end...

REXML::Document (13.0)

XMLの完全な文書(ドキュメント)を表すクラス。

...ment Type Definition)、
などを含んでいます。
ドキュメントは直下の子ノードをただ一つ持っています(rootと呼び、
REXML::Document#root でアクセスできます)。
2つ目の要素を(REXML::Element#add_elementなどで)追加しようとすると
例外(Runtime...

Psych::Nodes::Document (7.0)

YAML ドキュメントを表すクラスです。

...またこの子ノードは以下のいずれかである必要があります。
* Psych::Nodes::Sequence
* Psych::Nodes::Mapping
* Psych::Nodes::Scalar
この唯一の子ノードは「ルート」とも呼ばれ、Psych::Nodes::Document#root
アクセスすることができます。...

Psych::Nodes::Mapping (7.0)

YAML の mapping http://yaml.org/spec/1.1/#mapping を表すクラスです。

...:Nodes::Sequence
* Psych::Nodes::Mapping
* Psych::Nodes::Scalar
* Psych::Nodes::Alias

子ノードは mapping のキーと値が交互に並んでいます。
ast = Psych.parse(<<EOS)
%YAML 1.1
---
x: y
u: v
EOS

p ast.root.children.map{|v| v.value } # => ["x", "y", "u", "v"]...
<< 1 2 > >>