From: "mario.lopes@..." Date: 2007-05-30T16:45:08+09:00 Subject: Help with simple meta programming Hi, This is a basic question of meta-programming with Ruby, which I'm still getting familiar with. I want to change/create a new attr_accessor such that it calls a kind of proxy for retrieving the variable (which is not actually stored in the object itself but rather on the database). def variable invoke_method(variable) ... end def variable=(value) invoke_method(variable, value) ... end So, I catch the method name which should correspond to the variable (except for the set method, which includes an extra '=') and pass it to another function. Any hints on how to get it done the right way? Thanks! Cheers, M�rio