{"issue":{"created_at":"2011-11-26T23:59:48Z","state":"closed","updated_at":"2011-11-27T04:01:46Z","user":{"gravatar_id":"bd9b6d9f929adbf8918fe37fb279c43e","id":218239,"url":"https://api.github.com/users/tadast","login":"tadast","avatar_url":"https://secure.gravatar.com/avatar/bd9b6d9f929adbf8918fe37fb279c43e?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"comments":2,"body":"This is just a suggestion, but since the change is quite simple, I've created a pull request. The idea is to allow passing multiple arguments to Object#in? method, like:\r\n\r\n```ruby\r\nanimal = \"cat\"\r\nanimal.in?(\"dog\", \"cat\", \"rat\")\r\n```\r\ncurrently, you'd have to do something like this:\r\n\r\n```ruby\r\nanimal = \"cat\"\r\nanimal.in?([\"bat\", \"cat\", \"rat\"])\r\n```\r\nwhich is not very nice. Implementation also preserves current behaviour. \r\nDo you think it would be useful?","assignee":null,"id":2357689,"number":3767,"pull_request":{"patch_url":"https://github.com/rails/rails/pull/3767.patch","html_url":"https://github.com/rails/rails/pull/3767","diff_url":"https://github.com/rails/rails/pull/3767.diff"},"labels":[],"title":"Object#in? also accepts multiple parameters","closed_at":"2011-11-27T02:10:51Z","html_url":"https://github.com/rails/rails/issues/3767","milestone":null,"url":"https://api.github.com/repos/rails/rails/issues/3767"},"action":"created","comment":{"created_at":"2011-11-27T04:01:46Z","updated_at":"2011-11-27T04:01:46Z","user":{"gravatar_id":"57240e72c8912c80bec2deda9b57d483","id":4912,"url":"https://api.github.com/users/sikachu","login":"sikachu","avatar_url":"https://secure.gravatar.com/avatar/57240e72c8912c80bec2deda9b57d483?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"@wycats I originally propose this varargs version in #258, but I think either @dhh or @tenderlove rejected it.\r\n\r\nDoes @dhh and @tenderlove feels ok after this get merged in?","id":2885645,"url":"https://api.github.com/repos/rails/rails/issues/comments/2885645"}}