Sandip ManeStruct class in RubyStruct is a collection of attributes with accessor methods, without having to write the class explicitly.Oct 28, 2020Oct 28, 2020
Sandip ManeDig method in Ruby#dig method was added in Ruby 2.3 to Array and Hash classes. It makes digging the Array and Hash easy while making the code readable.Sep 29, 2020Sep 29, 2020
Sandip ManeZero-Downtime migrations in RailsOften, we rename a column and deploy to find out the Honeybadger screaming at us with the errors accessing column with the old name!Sep 16, 2020Sep 16, 2020
Sandip ManeHashWithIndifferentAccess in RailsWhen I found out how the params could be accessed using both symbol and string as keys, I dived deep to figure out about…Sep 7, 2020Sep 7, 2020
Sandip ManeRuby’s Comparable moduleRuby’s Comparable module is used when implementing class objects needs to be ordered or compared.Aug 31, 2020Aug 31, 2020
Sandip ManeEnumerable Module in RubyRuby’s Enumerable module adds magical methods to classes like Array and Hash. In this post, we will learn to implement enumeration with an…Aug 24, 2020Aug 24, 2020
Sandip ManeCreate and publish rails gems elegantly!Creating rails gems can be a hustle, at least for the first time. The process can be streamlined with just the right moves put together…Aug 17, 2020Aug 17, 2020
Sandip ManeOpenStruct in RubyOpenStruct is one of the data structures implemented with meta-programming in ruby. Let’s see what it offers and where can it best fit in…Aug 17, 2020Aug 17, 2020