On Jan 14, 2012, at 22:36 , Marc Heiler wrote:

> In other words I would need a way to programmatically access the
> first option of every when clause.

Or a way to programmatically access your methods:

self.methods # => ["list_cars", "list_whatever", "list_plants", ...]

A better way would probably be: self.class.public_instance_methods(false)