Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Szymon Sobański's Profile

GitHub User: szymko

Comments by Szymon Sobański

Avatar

I've seen recently a Gem for creating such method encapsulation like memoization. It's called MethodDecorators, inspired by actual decorators existing in Python, you can find it on Github.

It's very interesting because of its extensive usage of metaprogramming and the way author mimics features of another programming language.