Ruby 2.0 on Rails
summary
Ruby 2.0 is slated for a February release and claims full compatibility with 1.9 while adding concrete features: refinements to localize monkey patches (examples: an RSpec-style should confined to examples, and an ActiveSupport_requirements gem that loads core extensions only inside a lexical scope), Module#prepend to replace alias_method_chain safely for method layering, Enumerator::Lazy used to implement an rcount-style file counter with low memory, and native keyword arguments handling defaults, splats and multiple hashes.
AI-written summary · about
chapters (13)
- 0:00Introduction
- 1:15What is Ruby 20
- 2:40New Features
- 3:42Refinements
- 4:47What are refinements
- 5:55Module refine
- 9:58Rspec refinements
- 12:46Active record refinements
- 16:39Active support refinements
- 23:42Alias method chain
- 29:46Module prepend
- 34:22innumerable lazy
- 38:50keyword arguments







