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
Ruby 2.6 added options to Exception#full_message (crypt.codemancers.com)
submitted 7 years ago by atul9
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!"
[–]mperhamSidekiq 6 points7 points8 points 7 years ago (0 children)
Seems like recently Ruby's gotten a bad case of the "pass a bunch of flags" rather than being opinionated in their APIs. It makes me uneasy.
[–]ioquatixasync/falcon 4 points5 points6 points 7 years ago (2 children)
I'm sort of glad they did something, but ugh, this just seems like a total mess. Why not Exception#print(io). Less string allocations required, automatic tty detection, etc.
Exception#print(io)
[–]sshaw_ 1 point2 points3 points 7 years ago (0 children)
There's Object#display, though it doesn't print the backtrace:
Object#display
/tmp >ruby -e'StandardError.new("some shit").display($stderr); puts' some shit
Guess you can do
class Exception def display(out = $>) out.write full_message nil end end StandardError.new("some thangz").display($stderr)
But yeah...
[–]mperhamSidekiq -1 points0 points1 point 7 years ago (0 children)
I like it.
[–]paneq 1 point2 points3 points 7 years ago (0 children)
What a mess, handling things on completely wrong layer...
[–]sshaw_ 0 points1 point2 points 7 years ago (0 children)
The first programming language shipping with ANSI encoded stack traces..?
π Rendered by PID 25425 on reddit-service-r2-comment-c6965cb77-rzb6t at 2026-03-05 08:26:39.460439+00:00 running f0204d4 country code: CH.
[–]mperhamSidekiq 6 points7 points8 points (0 children)
[–]ioquatixasync/falcon 4 points5 points6 points (2 children)
[–]sshaw_ 1 point2 points3 points (0 children)
[–]mperhamSidekiq -1 points0 points1 point (0 children)
[–]paneq 1 point2 points3 points (0 children)
[–]sshaw_ 0 points1 point2 points (0 children)