ryan-allen/modelling — pull request #1 by justinfrench (2012-04-18 01:35:27+00:00)
Title: Add `#inspect` and `.accessors`

Hello, I wanted to get something hash-like back from `MyModel#inspect`. Previously, `#inspect` just delegated to `#to_s`, which I think is the default behaviour for `Kernal#to_s`. This is now way more bettererer, returning a hash of method names and values so that I can, you know, inspect stuff.

```
>> User.new(:name => "Joe").inspect
=> { :name => "Joe" }
```