#455 √ resolved
kwatch

[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

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 »

People watching this ticket

Tags