how about

```ruby
sample_serializer = <<-SAMPLE 
  class SampleTypeSerializer < Crichton::Representor::Serializer
     media_types sample_type: %w(application/sample_media_type)
  end
SAMPLE
eval(sample_serializer)
```