[BUG] ENV object doesn't have methods of Hash
Reported by kwatch | March 31st, 2008 @ 12:03 AM | in 1.0 preview
ENV object should have methods of Hash but it doesn't.
$ shotgun/rubinius -e 'p(ENV.methods.sort - Object.methods)'
["[]", "[]=", "delete", "has_key?", "key?"]
$ ruby -e 'p(ENV.methods.sort - Object.methods)'
["[]", "[]=", "all?", "any?", "clear", "collect", "delete",
"delete_if", "detect", "each", "each_key", "each_pair", "each_value",
"each_with_index", "empty?", "entries", "fetch", "find", "find_all",
"grep", "has_key?", "has_value?", "index", "indexes", "indices",
"inject", "invert", "key?", "keys", "length", "map", "max", "member?",
"min", "partition", "rehash", "reject", "reject!", "replace",
"select", "shift", "size", "sort", "sort_by", "store", "to_hash",
"update", "value?", "values", "values_at", "zip"]
Comments and changes to this ticket
-

Marius Nuennerich April 8th, 2008 @ 08:01 AM
I'm wokring on it. Can't assign myself to the ticket though.
-

Marius Nuennerich April 14th, 2008 @ 11:51 AM
- → State changed from new to resolved
Fixed in HEAD.
Thanks for reporting!
Please Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
