Ruby 2 in Ruby on Rails
summary
Survey of Ruby 2 features that Rails actually adopts: module prepend replaces fragile alias_method_chain for monkey patches and avoids hidden intermediate methods; refinements get used in gems (database_rewinder) and Rails 5.1 to hide internal helpers but reveal a surprising position-dependent behavior — not truly file-scoped — that required reporting; keyword arguments clean up APIs but historically ran much slower (benchmarks showed ~4× slowness on older Rubies), so migration needs testing; patches include an RDoc/parser fix for new private-def parsing, frozen-string-literal magic comment, and experiments with require_relative and instruction-sequence dumping for boot speed.
AI-written summary · about
chapters (8)
- 0:00Start
- 3:54New Features
- 4:08Module Prepend
- 12:29Refinements
- 18:10Method Visibility
- 30:05Keyword Arguments
- 42:44Frozen Strings
- 45:16Performance








