218件ヒット
[101-200件を表示]
(0.068秒)
ライブラリ
- ビルトイン (14)
-
net
/ imap (12) - pathname (36)
- psych (24)
-
rdoc
/ code _ object (84) -
rexml
/ document (48)
クラス
- Dir (7)
-
Net
:: IMAP :: ThreadMember (12) - Pathname (36)
-
Psych
:: Nodes :: Node (24) -
RDoc
:: CodeObject (84) -
REXML
:: Element (24) -
REXML
:: Parent (24) -
RubyVM
:: AbstractSyntaxTree :: Node (7)
キーワード
-
document
_ children (12) -
document
_ children= (12) -
document
_ self (12) -
document
_ self= (12) -
each
_ child (24) -
remove
_ classes _ and _ modules (12) - root (12)
-
root
_ node (12) -
start
_ doc (12) -
stop
_ doc (12) - tag (12)
-
to
_ a (12)
検索結果
先頭5件
-
REXML
:: Element # root -> REXML :: Element (49.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 (49.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 (25.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... -
Pathname
# each _ child(with _ directory = true) -> Enumerator (23.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... -
Pathname
# each _ child(with _ directory = true) {|pathname| . . . } -> [Pathname] (23.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... -
RDoc
:: CodeObject # remove _ classes _ and _ modules -> () (17.0) -
何もしません。RDoc::CodeObject#document_children= に false を指定 した時のコールバックとして呼び出されます。オーバーライドして使用します。
...何もしません。RDoc::CodeObject#document_children= に false を指定
した時のコールバックとして呼び出されます。オーバーライドして使用します。... -
RDoc
:: CodeObject # document _ self -> bool (7.0) -
自身をドキュメントに含めるかどうかを返します。
...自身をドキュメントに含めるかどうかを返します。
@see RDoc::CodeObject#document_children... -
RDoc
:: CodeObject # document _ self=(val) (7.0) -
自身をドキュメントに含めるかどうかを設定します。
...c: を指定した時に true が設定されます。
:nodoc:、:stopdoc: を指定した時に false が設定されます。
@param val true を指定した場合、自身をドキュメントに含めます。
@see RDoc::CodeObject#document_children=,
RDoc::CodeObject#remove_methods_etc... -
RDoc
:: CodeObject # start _ doc -> () (7.0) -
以降に解析したコメントを RDoc::CodeObject#stop_doc を呼び出すまで の間、ドキュメントに含めます。
...メントを RDoc::CodeObject#stop_doc を呼び出すまで
の間、ドキュメントに含めます。
:startdoc: を見つけた時に呼び出されます。
RDoc::CodeObject#document_self と
RDoc::CodeObject#document_children を true に設定します。
@see RDoc::CodeObject#end_doc...