るりまサーチ

最速Rubyリファレンスマニュアル検索!
60件ヒット [1-60件を表示] (0.023秒)
トップページ > クエリ:lf[x] > クエリ:insert[x]

別のキーワード

  1. cgi lf
  2. webrick/httputils lf
  3. webrick lf
  4. cgi/core lf
  5. lf cgi

ライブラリ

クラス

キーワード

検索結果

Array#insert(nth, *val) -> self (18213.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]
//}...

String#insert(pos, other) -> self (18207.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#[]=...

REXML::Parent#insert_after(child1, child2) -> self (6201.0)

child2 を child1 で指定したノードの後ろに挿入します。

...るならば、XPath で場所を指定します。
具体的には REXML::XPath.first(self, child1) で特定されるノードの
後ろに挿入されます。

挿入されるノード(child2)の親は self に変更されます。

@param child1 挿入場所の指定
@param child2 挿入され...

REXML::Parent#insert_before(child1, child2) -> self (6201.0)

child2 を child1 で指定したノードの前に挿入します。

...るならば、XPath で場所を指定します。
具体的には REXML::XPath.first(self, child1) で特定されるノードの
前に挿入されます。

挿入されるノード(child2)の親は self に変更されます。

@param child1 挿入場所の指定
@param child2 挿入される...

ruby 1.8.4 feature (24.0)

ruby 1.8.4 feature ruby 1.8.4 での ruby 1.8.3 からの変更点です。

...uper
end
end

class Bar
include Foo
def initialize
Foo.instance_method(:initialize).bind(self).call
end
end

Bar.new

# => ruby 1.8.3 (2005-09-21) [i686-linux]
-:3:in `initialize': method `initia...
...履歴は
ext/tk/ChangeLog.tkextlib
を参照してください.

* サンプルスクリプト

: ext/tk/sample/scrollframe.rb [new]

配置したウィジェットの表示範囲をスクロールすることが
できるようなスクロールバ...
...FREE.
#
# * st.c: uses malloc instead of xmalloc to avoid GC. syck uses st_insert
# in gram.c to insert node from rb_syck_bad_anchor_handler into
# SyckParser's hash table. if GC occurs in st_insert, it's not under
# SyckParser's mark system yet. so RString can be relea...

絞り込み条件を変える