Ruby filter

Is it possible to assign a class variable to an event field using ruby ?