Leave a comment

Ah, Eigenclass


I never knew how this worked nor heard of Eigenclass but have used find_by…. Nice clear explanation 🙂

This is a Blog

There is a point in a Ruby-ist’s life where you dig a little too deep into the depths of metaprogramming.

Sometimes the result is incredibly cool, like Rails. Rails uses a lot of metaprogramming in order to save you a lot of effort.

For example, there’s some nifty work being done in order to create the find_by methods through combining method_missing and the Eigenclass. This particular post is about the Eigenclass but you can find a pretty good explanation of method_missing here.  But for more about Eigenclass, read on. 

View original post 345 more words

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: