DEV Community

Cover image for Hidden Gem(s): What Are Your Favorite Lesser-Known Ruby Features & Techniques? 💎💻
dev.to staff for The DEV Team

Posted on

6 1

Hidden Gem(s): What Are Your Favorite Lesser-Known Ruby Features & Techniques? 💎💻

Hey Ruby enthusiasts! Let's talk about those hidden gems in Ruby that often go unnoticed but pack a punch! What are some lesser-known features or techniques that you find fascinating or exceptionally useful? Share your personal discoveries, tips, and tricks that make your Ruby coding experience even more delightful. Whether you're a seasoned Rubyist or a curious beginner, join the conversation!

Follow the DEVteam for more discussions and online camaraderie!

Top comments (3)

Collapse
 
lyqht profile image
Estee Tey

Coming from a Javascript background, I find the memoization pattern in Ruby to be really interesting. Here's an article that helped me with learning about it: justinweiss.com/articles/4-simple-...

Collapse
 
katafrakt profile image
Paweł Świątkowski

I wrote an article few years ago about little-known stuff in the standard library:
katafrakt.me/2018/06/06/hidden-jew...

Collapse
 
kevinluo201 profile image
Kevin Luo

You can use obj.method(:a_method_name).source_location to know where the method, a_method_name, is defined. It's super useful when debugging so I don't need to "guess" what a method does

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more