Polymorphic helper methods?

I need a general helper method for displaying some of my model
classes. What is displayed depends on the model. How it is displayed
depends on the locale.

The first requirement can be met by defining an appropriate
#to_formatted_s method in each of the relevant model classes. The
second requirement can be met by a couple of locale-aware helper
methods. Unfortunately, I don’t see how to get these two requirements
together. Ideally, I’d even like to get rid of #to_formatted_s as it is
only about presentation and thus doesn’t belong in the model.

Therefore, what I need are polymorphic helper methods. But how do I get
them?

Michael


Michael S. Airtight arguments have
mailto:[email protected] vacuous conclusions.
Michael Schürig | Sentenced to making sense --A.O. Rorty, Explaining Emotions