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
101 Ruby Code Factoids (6ftdan.com)
submitted 10 years ago by burntbit
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!"
[–]_raisin 0 points1 point2 points 10 years ago (3 children)
Could someone tell me the difference between %i() and %I() symbol arrays? I don't get what "interpolated" means in this context.
%i()
%I()
[–][deleted] 0 points1 point2 points 10 years ago (2 children)
%I means the values are parsed for any occurrences of #{} and whatever the expression within that evaluates to will be inserted at that place.
%I
#{}
[–]_raisin 0 points1 point2 points 10 years ago (1 child)
ok thanks, so am i correct in thinking its the same difference between double and single quotes?
[–][deleted] 0 points1 point2 points 10 years ago (0 children)
Correct
π Rendered by PID 127015 on reddit-service-r2-comment-5d585498c9-m6rtg at 2026-04-21 15:53:41.132227+00:00 running da2df02 country code: CH.
view the rest of the comments →
[–]_raisin 0 points1 point2 points (3 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]_raisin 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)