concat(other) -> self[permalink][rdoc][edit]concat(*arguments) -> self(*string | Integer string_or_codepoints) → self-
self に複数の文字列を破壊的に連結します。
引数の値が整数である場合は Integer#chr の結果に相当する文字を末尾に追加します。追加する文字のエンコーディングは self.encoding です。
self を返します。
- [PARAM]
arguments: - 複数の文字列もしくは 0 以上の整数
str = "foo" str.concat p str # => "foo" str = "foo" str.concat "bar", "baz" p str # => "foobarbaz" str = "foo" str.concat("!", 33, 33) p str # => "foo!!!"[SEE_ALSO] String#append_as_bytes
- [PARAM]