Braxton Beyer wrote: > I want to be able to do something like this: > > 1000.case when 100 then "string1" when 110 then "string2" else "Unknown" > end > > I have an app that allows an admin to enter a filter that is ruby code. > The filter code is then applied directly to a variable. Is there a way > to apply a case statement such as the one above Are you sure the 'filter' must be a method of the object itself? That is, you are limited to methods which exist in Object and Fixnum? (unlike, say, Liquid filters, which are defined as methods which take the object as the first argument) -- Posted via http://www.ruby-forum.com/.