concat

str.concat(integer) â str
str.concat(obj) â str
Instance Public methods

AppendâConcatenates the given object to str. If the object is a Integer, it is considered as a codepoint, and is converted to a character before concatenation.

a = "hello "
a << "world"   #=> "hello world"
a.concat(33)   #=> "hello world!"
doc_ruby_on_rails
2015-05-15 15:13:25
Comments
Leave a Comment

Please login to continue.