blob: 92ba664b8cb82516a33c6c757cc1cfc0c4f8c6ae (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
Concatenates each object in +objects+ to +self+; returns +self+:
'foo'.concat('bar', 'baz') # => "foobarbaz"
For each given object +object+ that is an integer,
the value is considered a codepoint and converted to a character before concatenation:
'foo'.concat(32, 'bar', 32, 'baz') # => "foo bar baz" # Embeds spaces.
'こん'.concat(12395, 12385, 12399) # => "こんにちは"
Related: see {Converting to New String}[rdoc-ref:String@Converting+to+New+String].
|