188件ヒット
[1-100件を表示]
(0.054秒)
種類
- インスタンスメソッド (115)
- クラス (24)
- 文書 (21)
- 特異メソッド (16)
- 関数 (12)
ライブラリ
- ビルトイン (23)
- pathname (36)
- psych (12)
-
rdoc
/ code _ object (60) -
rexml
/ document (24)
クラス
- Dir (16)
- Pathname (36)
-
RDoc
:: CodeObject (60) -
REXML
:: Element (12) -
RubyVM
:: AbstractSyntaxTree :: Node (7)
キーワード
- Default (12)
- Mapping (12)
-
NEWS for Ruby 2
. 5 . 0 (8) -
NEWS for Ruby 2
. 6 . 0 (7) -
NEWS for Ruby 2
. 7 . 0 (6) -
document
_ children (12) -
document
_ children= (12) -
document
_ self (12) -
document
_ self= (12) -
each
_ child (40) -
rb
_ gc _ mark _ children (12) -
remove
_ classes _ and _ modules (12) -
root
_ node (12)
検索結果
先頭5件
-
RubyVM
:: AbstractSyntaxTree :: Node # children -> Array (21107.0) -
self の子ノードを配列で返します。
...type によって異なります。
戻り値は、ほかの RubyVM::AbstractSyntaxTree::Node のインスタンスや nil を含みます。
//emlist[][ruby]{
node = RubyVM::AbstractSyntaxTree.parse('1 + 2')
p node.children
# => [[], nil, #<RubyVM::AbstractSyntaxTree::Node:OPCALL@1:0-1:5>]
//}... -
Pathname
# children(with _ directory = true) -> [Pathname] (18207.0) -
self 配下にあるパス名(Pathnameオブジェクト)の配列を返します。
...す。デフォルトは真です。
@raise Errno::EXXX self が存在しないパスであったりディレクトリでなければ例外が発生します。
//emlist[例][ruby]{
require 'pathname'
Pathname.new("/tmp").children # => [#<Pathname:.X11-unix>, #<Pathname:.iroha_unix>, ... ]
//}... -
RDoc
:: CodeObject # document _ children -> bool (12201.0) -
自身に含まれるメソッド、エイリアス、定数や属性をドキュメントに含めるか どうかを返します。
...自身に含まれるメソッド、エイリアス、定数や属性をドキュメントに含めるか
どうかを返します。
@see RDoc::CodeObject#document_self... -
RDoc
:: CodeObject # document _ children=(val) (12201.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) (6200.0) -
v から指されているオブジェクトを全てマークします。
v から指されているオブジェクトを全てマークします。 -
RDoc
:: CodeObject # remove _ classes _ and _ modules -> () (6116.0) -
何もしません。RDoc::CodeObject#document_children= に false を指定 した時のコールバックとして呼び出されます。オーバーライドして使用します。
...何もしません。RDoc::CodeObject#document_children= に false を指定
した時のコールバックとして呼び出されます。オーバーライドして使用します。... -
RDoc
:: CodeObject # document _ self -> bool (6106.0) -
自身をドキュメントに含めるかどうかを返します。
...自身をドキュメントに含めるかどうかを返します。
@see RDoc::CodeObject#document_children... -
RDoc
:: CodeObject # document _ self=(val) (6106.0) -
自身をドキュメントに含めるかどうかを設定します。
...。
:doc: を指定した時に true が設定されます。
:nodoc:、:stopdoc: を指定した時に false が設定されます。
@param val true を指定した場合、自身をドキュメントに含めます。
@see RDoc::CodeObject#document_children=,
RDoc::CodeObject#remove_metho... -
REXML
:: Formatters :: Default (6054.0) -
XMLドキュメントを(文字列として)出力するクラスです。
...//emlist[][ruby]{
require 'rexml/document'
require 'rexml/formatters/default'
doc = REXML::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
# =......children>\n <grandchildren/>\n</children>\n</root>\n"
output = StringIO.new
default_formatter.write(REXML::XPath.first(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"
//}...