self << other -> self[permalink][rdoc][edit]-
self に文字列 other を破壊的に連結します。 other が 整数である場合は other.chr(self.encoding) 相当の文字を末尾に追加します。
self を返します。
- [PARAM]
other: - 文字列もしくは 0 以上の整数
str = "string" str << "YYY" p str # => "stringYYY" str << 65 # 文字AのASCIIコード p str # => "stringYYYA"[SEE_ALSO] String#concat
- [PARAM]