IRB’s Built-in Measure
measure :stackprof, на сайте с 25 августа 2023, 23:03
When reading the official Ruby 3.0 release post, one bullet caught my eye especially. With Ruby 3.0, IRB introduced a measure command. As someone who often times little snippets when debugging, comparing code, or writing new code, I was intrigued! IRB’s new measure command is a quick and easy way to measure different snippets from an IRB console.