RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Metaprogramming Dynamic Methods: Using Public_send

Metaprogramming is super cool, but it’s also super tough to learn when you’re first starting out. This blog post takes a look at metaprogramming through dynamic method calls, and explains and implements the public_send method in a real-life example of code abstraction.

Comments

Guess most people only know send but not public_send since send is used more often by many gems.

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in