News for hackers. Stuff that matters.
Re:IRB's Built-In Measure by faitswulff on Saturday April 08, 2023 @11:49PM (#35499918)
Can someone add [2021] to this title?
Re:IRB's Built-In Measure by GreenWatermelon on Sunday April 09, 2023 @12:37AM (#35500100)
This is amazing! I work with ruby in my day job (unsurprisingly, Rails), and had no idea about existence of measure, though admittedly most of our codebases run Ruby versions older than 3.
Re:IRB's Built-In Measure by fortysixdegrees on Sunday April 09, 2023 @01:09AM (#35500214)
Me too but embedded (yip, ruby embedded). Love this!!
Re:IRB's Built-In Measure by typohaiku on Sunday April 09, 2023 @06:08AM (#35501306)
Yeah, this was news to me too. It looks very handy.

Friendly PSA: Support (security patches) for ruby < 3.0 ended this month.

Re:IRB's Built-In Measure by semiquaver on Sunday April 09, 2023 @09:17AM (#35502443)
Starting in ruby 2.6, irb is a gem bundled with ruby, so you can upgrade to the latest version in older rubies: https://github.com/ruby/irb#installation
Re:IRB's Built-In Measure by quechimba on Sunday April 09, 2023 @01:54AM (#35500357)
Nice, had no idea. Does this also work with pry? Or is there a plugin or something?

Edit: Just googled. Didn't find anything about pry, but I found https://st0012.dev/whats-new-in-ruby-3-2-irb

Re:IRB's Built-In Measure by baremetal on Sunday April 09, 2023 @07:56AM (#35501884)
Neat!

I work with ruby daily and its nice to see this built in.