use define_method for adhoc renderers