Discover Modern Ruby features
summary
Covers concrete Ruby changes: endless method (Ruby 3.0) for compact single‑statement defs that can still be multiline, data Define (Ruby 3.2) for immutable value objects comparable by value, hash literal value omission (3.1) that pulls a local variable into a hash to remove repetition, and pattern matching for destructuring JSON into locals (careful, it can overwrite existing locals or raise on nonmatches). Shows real code examples, a RuboCop config PR applied at work, and years when each feature landed.
AI-written summary · about
chapters (11)
- 0:00Introduction
- 1:10Why adopt new features
- 3:21Ruby's evolution
- 6:55Ruby's innovator dilemma
- 10:08Endless methods
- 16:25Ruby's data classes
- 21:15Hash literals in Ruby 3.1
- 24:04Argument forwarding in Ruby 2.7+
- 25:31Pattern matching in Ruby 2.7+
- 32:13Adopting modern Ruby
- 34:00Q&A








