5 ms·
IRB's Built-In Measure (2021)
- faitswulff 4y agoCan someone add [2021] to this title?
- GreenWatermelon 4y agoThis 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.
- fortysixdegrees 4y agoMe too but embedded (yip, ruby embedded). Love this!!
- typohaiku 4y agoYeah, this was news to me too. It looks very handy. Friendly PSA: Support (security patches) for ruby < 3.0 ended this month.
- semiquaver 4y agoStarting 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 https://github.com/ruby/irb#installation
- quechimba 4y agoNice, 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 https://st0012.dev/whats-new-in-ruby-3-2-irb
- deleted 4y ago[deleted]
- baremetal 4y agoNeat! I work with ruby daily and its nice to see this built in.