DEV Community

Lucian Ghinda
Lucian Ghinda

Posted on • Originally published at newsletter.shortruby.com

Ways to call a method in Ruby

This is a code summary for https://www.notonlycode.org/12-ways-to-call-a-method-in-ruby/

Part 1/4 Defining the class

Part 2/4: Ways to call a method

Part 3/4: Other ways to call a method

Part 4/4: using bind and binding

The source code if you want to play with this is here.


Follow me on Twitter @lucianghinda where I share/retweet mostly Ruby and Rails content.

I also publish a newsletter with Ruby and Rails fresh content at newsletter.shortruby.com — in case you want to stay up to date with what is happening in Ruby and Rails world.

Image of Datadog

How to Diagram Your Cloud Architecture

Cloud architecture diagrams provide critical visibility into the resources in your environment and how they’re connected. In our latest eBook, AWS Solution Architects Jason Mimick and James Wenzel walk through best practices on how to build effective and professional diagrams.

Download the Free eBook

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay