168件ヒット
[1-100件を表示]
(0.078秒)
別のキーワード
ライブラリ
- ビルトイン (12)
- pathname (12)
-
rdoc
/ code _ object (24) -
rexml
/ document (120)
クラス
- Object (12)
- Pathname (12)
-
RDoc
:: CodeObject (24) -
REXML
:: Child (24) -
REXML
:: Parent (84)
モジュール
-
REXML
:: Node (12)
キーワード
- << (12)
- add (12)
-
index
_ in _ parent (12) -
insert
_ after (12) -
insert
_ before (12) - parent= (12)
-
parent
_ file _ name (12) -
parent
_ name (12) - push (12)
-
replace
_ child (12) -
replace
_ with (12) -
singleton
_ methods (12) - unshift (12)
検索結果
先頭5件
-
Pathname
# parent -> Pathname (18160.0) -
self の親ディレクトリを指す新しい Pathname オブジェクトを返します。
...self の親ディレクトリを指す新しい Pathname オブジェクトを返します。
//emlist[例 絶対パス][ruby]{
require "pathname"
path = Pathname("/usr")
path # => #<Pathname:/usr>
path.parent # => #<Pathname:/>
//}
//emlist[例 相対パス][ruby]{
require "pathname"
pat......h = Pathname("foo/bar")
path.parent # => #<Pathname:foo>
path.parent.parent # => #<Pathname:.>
path.parent.parent.parent # => #<Pathname:..>
//}... -
RDoc
:: CodeObject # parent _ file _ name -> String (6140.0) -
self.parent のファイル名を返します。
...
self.parent のファイル名を返します。
@see RDoc::CodeObject#parent... -
RDoc
:: CodeObject # parent _ name -> String (6140.0) -
self.parent の名前を返します。
...
self.parent の名前を返します。
@see RDoc::CodeObject#parent... -
REXML
:: Child # parent=(other) (6126.0) -
other を親ノードに設定します。
...ードと同じならばこのメソッドは何もしません。
self が親を持たない場合は単純に other を親ノードに設定します。
どちらでもない場合は、元の親ノードの子ノード列から self を取り除いて
から other を親ノードに設定しま......メソッドだけでは other の子ノード集合に self は追加されません。
つまりこのメソッドを呼び出した直後は不完全な状態であり、親ノード側を
適切に設定する必要があります。
@param other 新たな親ノード
@see REXML::Child#parent... -
REXML
:: Node # index _ in _ parent -> Insteger (6118.0) -
self の親における index を返します。
...self の親における index を返します。
返される index は 1-origin です。
ノードが親を持たない(REXML::Child でない)場合は例外を発生させます。... -
REXML
:: Parent # insert _ after(child1 , child2) -> self (3114.0) -
child2 を child1 で指定したノードの後ろに挿入します。
...るならば、XPath で場所を指定します。
具体的には REXML::XPath.first(self, child1) で特定されるノードの
後ろに挿入されます。
挿入されるノード(child2)の親は self に変更されます。
@param child1 挿入場所の指定
@param child2 挿入され... -
REXML
:: Parent # insert _ before(child1 , child2) -> self (3114.0) -
child2 を child1 で指定したノードの前に挿入します。
...あるならば、XPath で場所を指定します。
具体的には REXML::XPath.first(self, child1) で特定されるノードの
前に挿入されます。
挿入されるノード(child2)の親は self に変更されます。
@param child1 挿入場所の指定
@param child2 挿入され... -
REXML
:: Parent # replace _ child(to _ replace , replacement) -> () (3019.0) -
子ノード列上の to_replace を replacement に置き換えます。
...子ノード列上の to_replace を replacement に置き換えます。
to_replace の parent は nil に、
replacement の parent は selfに変更されます。
@param to_replace 置き換え元のノード
@param replacement 置き換え先のノード... -
REXML
:: Parent # <<(object) -> () (3007.0) -
object を子ノード列の最後に追加します。
...object を子ノード列の最後に追加します。
object の親ノードには self が設定されます。
@param object 追加するノード...