Ruby metaprogramming helpers
