Method: String#concat

Defined in:
string.c

#<<(fixnum) ⇒ String #concat(fixnum) ⇒ String #<<(obj) ⇒ String #concat(obj) ⇒ String

Append—Concatenates the given object to str. If the object is a Fixnum between 0 and 255, it is converted to a character before concatenation.

a = "hello "
a << "world"   #=> "hello world"
a.concat(33)   #=> "hello world!"

Overloads:



838
839
840
# File 'string.c', line 838

VALUE
rb_str_concat(str1, str2)
VALUE str1, str2;