-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dictionary cannot contain 'nil' key #7
Comments
Yea. This is a general issue with NilClass. For example:
So However you can get around this by setting
Where |
Hmm to me it still seems unintuitive for a container to be able to enter an On Wed, Apr 27, 2011 at 7:22 PM, trans <
|
That's a good point about I'm open to suggestions. |
The following does not work:
require 'rubygems'
require 'hashery'
d = Dictionary.new
d[0] = 1
d[nil] = 2
d.order_by_key
=>ArgumentError: comparison of Fixnum with nil failed
The text was updated successfully, but these errors were encountered: