teaminsight/ns-options — pull request #12 by jcredding (2011-11-17 21:18:55+00:00)
Title: Handle nil values better

- when an option's type class comes in as NilClass, an option will convert it to Object
- added a test to confirm when any option's value is set to nil, will use nil instead of
trying to coerce it to it's type class

@kelredd - Apparently I had already put in if you set an option to nil it will use nil and not try to coerce it, so we were good to go there. I added, if a type class ever gets set to `NilClass` an option will use `Object` instead. This was achievable with a dynamic option:

```ruby
# settings is a namespace
settings.something_not_defined = nil
settings.options[:something_not_defined].type_class # => NilClass, not good
```