abstracts variable assignment eval to module method