Ruby itself
Jan 25, 2025 · 1 min read · It’s interesting to discover that Ruby has an instance method itself for the object. It returns the receiver itself—whatever the kind of receiver is. Let’s see a few examples: website = "Hashnode" # => "Hashnode" website.itself # => "Hashnode" websi...
Join discussion