るりまサーチ

最速Rubyリファレンスマニュアル検索!
411件ヒット [101-200件を表示] (0.014秒)
トップページ > クエリ:children[x]

別のキーワード

  1. _builtin children
  2. pathname children
  3. dir children
  4. node children
  5. psych children

検索結果

<< < 1 2 3 4 ... > >>

RDoc::CodeObject#document_children=(val) (6101.0)

自身に含まれるメソッド、エイリアス、定数や属性をドキュメントに含めるか どうかを設定します。

自身に含まれるメソッド、エイリアス、定数や属性をドキュメントに含めるか
どうかを設定します。

:nodoc:、:stopdoc: を指定した時に false が設定されます。

@param val true を指定した場合、上記をドキュメントに含めます。

@see RDoc::CodeObject#document_self=,
RDoc::CodeObject#remove_classes_and_modules

void rb_gc_mark_children(VALUE ptr) (6100.0)

v から指されているオブジェクトを全てマークします。

v から指されているオブジェクトを全てマークします。

REXML::Parent#to_a -> [REXML::Child] (3001.0)

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

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

REXML::Formatters::Default (54.0)

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

...EXML::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....
...t(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 (54.0)

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

...ew <<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>\...
...>> <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 />\n</children\n>"
//}...

絞り込み条件を変える

REXML::Element#root -> REXML::Element (48.0)

self が属する文書のルート要素を返します。

...t>
<children>
<grandchildren />
</children>
</root>
EOS

children
= doc.get_elements("/root/children").first
children
.name # => "children"
children
.root.name # => "root"
grandchildren = doc.get_elements("/root/children/grandchildren").first
grandchildren.name # => "grandchildren"
grandchildren.roo...

REXML::Element#root_node -> REXML::Document | REXML::Node (48.0)

self が属する文書のルートノードを返します。

...<children>
<grandchildren />
</children>
</root>
EOS

children
= doc.get_elements("/root/children").first
children
.name # => "children"
children
.root_node == doc # => true
grandchildren = doc.get_elements("/root/children/grandchildren").first
grandchildren.name # => "grandchildren"
grandchildren....

Psych::Nodes::Node#tag -> String | nil (24.0)

ノードに付加されたタグを返します。

...されていない場合は nil を返します。

ast = Psych.parse(<<EOS)
---
- !!str a
- b
EOS

p ast.root.children[0].value # => "a"
p ast.root.children[0].tag # => "tag:yaml.org,2002:str"

p ast.root.children[1].value # => "b"
p ast.root.children[1].tag # => nil...

REXML::Formatters::Pretty (24.0)

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

...ent.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>"
# この...

Pathname#each_child(with_directory = true) -> Enumerator (22.0)

self.children(with_directory).each と同じです。

...self.children(with_directory).each と同じです。

@param with_directory 偽を指定するとファイル名のみ返します。デフォルトは真です。

//emlist[例][ruby]{
require "pathname"

Pathname("/usr/local").each_child {|f| p f }
# => #<Pathname:/usr/local/bin>
# => #<Pathname...
...al/share>
# => #<Pathname:/usr/local/var>

Pathname("/usr/local").each_child(false) {|f| p f }
# => #<Pathname:bin>
# => #<Pathname:etc>
# => #<Pathname:include>
# => #<Pathname:lib>
# => #<Pathname:opt>
# => #<Pathname:sbin>
# => #<Pathname:share>
# => #<Pathname:var>
//}

@see Pathname#children...

絞り込み条件を変える

<< < 1 2 3 4 ... > >>