In one of the projects I work, there was a requirement to schedule only one job for a record at a time. If someone wants to schedule another one for the same record, the system should clear the old schedule for it and schedule the new one.
After working on a project for a while, we normally end up having too many branches locally.
OpenSSL::SSL::SSLError (SSL_connect returned=1 errno=0 state=error: certificate verify failed (self signed certificate in certificate chain))
Struct is a collection of attributes with accessor methods,
without having to write the class explicitly.
#dig method was added in Ruby 2.3 to
It makes digging the Array and Hash easy while making the code readable.
Often, we rename a column and deploy to find out the Honeybadger screaming at us with the errors accessing column with the old name!
When I found out how the
params could be accessed using both
string as keys,
I dived deep to figure out about
ActiveSupport::HashWithIndifferentAccess class in Rails.
module is used when implementing class objects needs to be ordered or compared.
Enumerable module adds magical methods
to classes like
In this post, we will learn to implement enumeration with an example.
OpenStruct is a data structure,
we can define
attributes with values
(key value pairs).
In this post, we will create, test, build and publish the gem to RubyGems! (without breaking a sweat).