るりまサーチ

最速Rubyリファレンスマニュアル検索!
36件ヒット [1-36件を表示] (0.074秒)
トップページ > ライブラリ:ビルトイン[x] > クエリ:p[x] > クエリ:pp[x] > クエリ:append[x]

別のキーワード

  1. openssl p
  2. openssl p=
  3. fileutils mkdir_p
  4. dsa p
  5. rsa p

クラス

モジュール

キーワード

検索結果

Array#append(*obj) -> self (30309.0)

指定された obj を順番に配列の末尾に追加します。 引数を指定しなければ何もしません。

...なければ何もしません。

@param obj 自身に追加したいオブジェクトを指定します。

//emlist[例][ruby]{
array = [1, 2, 3]
array.push 4
array.push [5, 6]
array.push 7, 8
p
array # => [1, 2, 3, 4, [5, 6], 7, 8]
//}

@see Array#pop, Array#shift, Array#unshift, Array...

Module#append_features(module_or_class) -> self (18321.0)

モジュール(あるいはクラス)に self の機能を追加します。

...][ruby]{
def include(*modules)
modules.reverse_each do |mod|
# append_features や included はプライベートメソッドなので
# 直接 mod.append_features(self) などとは書けない
mod.__send__(:append_features, self)
mod.__send__(:included, self)
end
end
//}

@see...

File::Constants::APPEND -> Integer (18303.0)

追記モードでファイルを開くときに指定します。 File.openで使用します。

...追記モードでファイルを開くときに指定します。
File.openで使用します。...

Array#push(*obj) -> self (12109.0)

指定された obj を順番に配列の末尾に追加します。 引数を指定しなければ何もしません。

...なければ何もしません。

@param obj 自身に追加したいオブジェクトを指定します。

//emlist[例][ruby]{
array = [1, 2, 3]
array.push 4
array.push [5, 6]
array.push 7, 8
p
array # => [1, 2, 3, 4, [5, 6], 7, 8]
//}

@see Array#pop, Array#shift, Array#unshift, Array...