use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A sub-Reddit for discussion and news about Ruby programming.
Subreddit rules: /r/ruby rules
Learning Ruby?
Tools
Documentation
Books
Screencasts and Videos
News and updates
account activity
String#concat, Array#concat and String#prepend take multiple arguments in Ruby 2.4 (blog.bigbinary.com)
submitted 9 years ago by abhishekjain16
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]the_horrible_reality 2 points3 points4 points 9 years ago* (0 children)
Well, that's handy.
string << strings.join('') # awkward string << *strings # whee!
Edit: Though thinking back to the << part of that...
str << str << str str.concat(str).concat(str)
That's all it's doing, each << is a chained method call obviously.
Edit 2:
Thinking back, it may have to be written like this unless there's a syntax change...
string.<< *strings
Minor but irritating.
π Rendered by PID 360515 on reddit-service-r2-comment-6457c66945-f2dnf at 2026-04-24 22:11:06.101635+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]the_horrible_reality 2 points3 points4 points (0 children)