Ruby adds a new core class called Data to represent simple immutable value objectsThe Data class helps define simple classes for value-alike objects that can be extended with custom methods.
Rails "ActionController::Parameters.to_h" can now receive a blockActionController::Parameters.to_h will now receive a block just like Hash#to_h and achieve parity. This gives the ability to customize the way parameters are passed to the controller.
The Ultimate Guide to Gemfile and Gemfile.lockIn-depth overview of what a Gemfile is and how a Gemfile works.
Ruby 3.1 introduces Variable Width Allocation for StringsIn this blog let us understand how Variable Width Allocation works in Ruby
How does Ruby manage memory?Each programming language has its version of memory management so, let us look into how Ruby does this under the hood.
Ruby Fibers 101Ruby 3 focuses more on concurrency with the introduction of Ruby Fibers and the Fiber Scheduler Interface.
Ruby 3.1 adds error highlighting gemWith changes in Ruby 3.1, we will be able to know which object is nil when an error gets raised.
Ruby 3.1 adds Class#subclassesRuby 3.1's new method Class#subclasses returns all classes directly from the receiver without adding singleton classes.
Ruby 3.1 adds Class#descendantsWith Ruby 3.1, we can use `Class#descendants` to yield the classes that have been directly or indirectly derived from a specific class.
Ruby 3.1 adds MatchData#match and MatchData#match_lengthRuby 3.1 MatchData#match returns the substring corresponding to the argument, while MatchData#match_length returns the length of the captured substring.