Ruby 2 in Ruby on Rails
summary
Rails 5 requires Ruby 2.x so Rails can use Ruby 2-only features; module prepend replaces alias_method_chain but mixing them can cause infinite loops; refinements behave not as advertised — order matters so the claimed refinements lie forces careful use; a small parser patch fixes RDoc’s handling of private_class_method so Rails can adopt the newer private-syntax safely; keyword arguments and binding_local_variable_get land as real features (historically slower in old Rubies), require_relative and frozen-string-literal support target boot and memory speedups.
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








