48件ヒット
[1-48件を表示]
(0.019秒)
別のキーワード
ライブラリ
- ビルトイン (24)
-
rexml
/ document (24)
クラス
- Array (12)
-
REXML
:: Parent (24) - String (12)
キーワード
-
insert
_ after (12) -
insert
_ before (12)
検索結果
先頭4件
-
String
# insert(pos , other) -> self (18225.0) -
pos 番目の文字の直前に文字列 other を挿入します。 self[pos, 0] = other と同じ操作です。
...字の直前に文字列 other を挿入します。
self[pos, 0] = other と同じ操作です。
@param pos 文字列を挿入するインデックス
@param other 挿入する文字列
//emlist[例][ruby]{
str = "foobaz"
str.insert(3, "bar")
p str # => "foobarbaz"
//}
@see String#[]=... -
Array
# insert(nth , *val) -> self (18215.0) -
インデックス nth の要素の直前(nth が負の場合は直後)に第 2 引数以降の値を挿入します。 引数 val を一つも指定しなければ何もしません。
...黙の型変換が行えない)オブジェクトを
指定した場合に発生します。
//emlist[例][ruby]{
ary = [1, 2, 3]
ary.insert(2, "a", "b")
p ary # => [1, 2, "a", "b", 3]
ary.insert(-2, "X")
p ary # => [1, 2, "a", "b", "X", 3]
//}... -
REXML
:: Parent # insert _ after(child1 , child2) -> self (6215.0) -
child2 を child1 で指定したノードの後ろに挿入します。
...るならば、XPath で場所を指定します。
具体的には REXML::XPath.first(self, child1) で特定されるノードの
後ろに挿入されます。
挿入されるノード(child2)の親は self に変更されます。
@param child1 挿入場所の指定
@param child2 挿入され... -
REXML
:: Parent # insert _ before(child1 , child2) -> self (6215.0) -
child2 を child1 で指定したノードの前に挿入します。
...あるならば、XPath で場所を指定します。
具体的には REXML::XPath.first(self, child1) で特定されるノードの
前に挿入されます。
挿入されるノード(child2)の親は self に変更されます。
@param child1 挿入場所の指定
@param child2 挿入され...