You can call any method you want! Like, say, days from ActiveSupport:
TypeError: can't convert nil into String
from base.rb:78:in `new'
from base.rb:78:in `instantiate_regardless_of_argument_count'
from base.rb:76:in `each'
from base.rb:76:in `instantiate_regardless_of_argument_count'
from base.rb:71:in `call_instance_method'
from base.rb:47:in `call_method'
from base.rb:43:in `each'
from base.rb:43:in `call_method'
from base.rb:37:in `method_missing'
Wait... why didn't that work? Whatever, it's not important. We're Ruby programmers; we have ways around errors! Like
>> Cantaloupe.new.days rescue 5
See? A cantaloupe has five days. Don't worry about it. It's fine.
- Gary Bernhardt, http://bit.ly/pQzk2G
Hit me again!