Home
Sudeep Tarlekar
Cancel

Difference between extend, include and prepend in Ruby

Introduction In Ruby, one can implement multiple inheritance using a concept called Mixins. Mixins allow you to include methods and behaviors from multiple modules into a class, enabling code reus...

Enhancing Test Expressiveness with Custom Matchers in RSpec

Introduction RSpec, a widely-used testing framework for Ruby, empowers developers to create comprehensive tests for their codebase. Among its impressive features, RSpec offers the flexibility to b...

Understanding Refinements in Ruby

Introduction In the Ruby world, everything is an object and is represented by classes. This makes it easy to tweak the functionality of certain classes based on your needs. In real life, this is c...

Introduction to Ractors in Ruby

Ruby is commonly considered slow in terms of performance compared to other programming languages, and the Ruby community is actively working to improve its speed. Have you heard of Ruby3x3? Accordi...

How to add Rails like associations in simple Ruby

Rails associations are a way to define relationships between entities in a Ruby on Rails application. They allow you to specify how different models are connected and how data can be accessed acros...

What is the difference between define_method and define_singleton_method?

Introduction Ruby is a popular object-oriented programming language known for its expressiveness and flexibility. One of the unique features of Ruby is its support for metaprogramming, which allow...