Do you mean:
```ruby
def test_model # (rethink the naming later :P)
  define_model(:example, :attr => :string).new
end
```
like that?