Create command line application with Ruby available via Homebrew
Building command-line application Our goal is to build a get_joke application that will render a random joke about Chuck Norris. The command […]
Building command-line application Our goal is to build a get_joke application that will render a random joke about Chuck Norris. The command […]
DSL’s around youBefore diving into the technical aspects of building DSL in Ruby, let’s explore more examples for domain-specific languages […]
Given we have the following Person class: class Persondef initialize(age:)@age = ageend def [email protected] > 17endendAnd equally simple test in […]
Gemfile is a well-known file even for not experienced Ruby developers. While for most people, it’s evident that the purpose […]
Brackets versus non-brackets version I usually ask the following question during the technical interview for the Ruby developers: what is […]
RSpec installation RSpec is available as a gem, but it’s a meta-gem, which means that it depends on other gems. […]
The count method Ruby implements its own count method, which counts the number of elements in the given array. However, ActiveRecord::Relation class implements its own implementation […]
The config-way of setting variables You can see this code in almost every Ruby gem that utilizes initializers to set […]
At first sight, it seems that the way Sidekiq jobs work is straightforward, but the truth is that the whole […]