るりまサーチ

最速Rubyリファレンスマニュアル検索!
19件ヒット [1-19件を表示] (0.041秒)
トップページ > クラス:String[x] > クエリ:tr[x] > クエリ:@[x] > クエリ:prepend[x]

別のキーワード

  1. matrix tr
  2. string tr_s
  3. string tr!
  4. string tr_s!
  5. string tr

ライブラリ

検索結果

String#prepend(other_str) -> String (21318.0)

文字列 other_str を先頭に破壊的に追加します。

...文字列 other_str を先頭に破壊的に追加します。

@
param other_str 追加したい文字列を指定します。

//emlist[例][ruby]{
a = "world"
a.prepend("hello ") # => "hello world"
a # => "hello world"
//}...

String#prepend(*arguments) -> String (21223.0)

複数の文字列を先頭に破壊的に追加します。

...複数の文字列を先頭に破壊的に追加します。

@
param arguments 追加したい文字列を指定します。

//emlist[例][ruby]{
a = "!!!"
a.prepend # => "!!!"
a # => "!!!"

a = "!!!"
a.prepend "hello ", "world" # => "hello world!!!"
a # => "hello...