{"action":"created","issue":{"url":"https://api.github.com/repos/intridea/hashie/issues/305","labels_url":"https://api.github.com/repos/intridea/hashie/issues/305/labels{/name}","comments_url":"https://api.github.com/repos/intridea/hashie/issues/305/comments","events_url":"https://api.github.com/repos/intridea/hashie/issues/305/events","html_url":"https://github.com/intridea/hashie/issues/305","id":94113088,"number":305,"title":"Hashie::Mash#respond_to? always returns `true` for attributes ending in `?`","user":{"login":"ryana","id":16389,"avatar_url":"https://avatars.githubusercontent.com/u/16389?v=3","gravatar_id":"","url":"https://api.github.com/users/ryana","html_url":"https://github.com/ryana","followers_url":"https://api.github.com/users/ryana/followers","following_url":"https://api.github.com/users/ryana/following{/other_user}","gists_url":"https://api.github.com/users/ryana/gists{/gist_id}","starred_url":"https://api.github.com/users/ryana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryana/subscriptions","organizations_url":"https://api.github.com/users/ryana/orgs","repos_url":"https://api.github.com/users/ryana/repos","events_url":"https://api.github.com/users/ryana/events{/privacy}","received_events_url":"https://api.github.com/users/ryana/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-09T17:56:25Z","updated_at":"2015-07-09T18:55:18Z","closed_at":null,"body":"Is this expected behavior?\r\n\r\n```\r\nra:ramen-rails(master) ryan$ be gem list | grep hashie\r\nhashie (3.4.1)\r\nra:ramen-rails(master) ryan$ be irb\r\nrequi2.1.2 :001 > require 'hashie/mash'\r\n => true \r\n2.1.2 :002 > d = Hashie::Mash.new\r\n => #<Hashie::Mash> \r\n2.1.2 :003 > d.respond_to? :persisted\r\n => false \r\n2.1.2 :004 > d.respond_to? :persisted?\r\n => true \r\n2.1.2 :005 > \r\n```\r\n\r\nThe final `true` threw me for a loop."},"comment":{"url":"https://api.github.com/repos/intridea/hashie/issues/comments/120107424","html_url":"https://github.com/intridea/hashie/issues/305#issuecomment-120107424","issue_url":"https://api.github.com/repos/intridea/hashie/issues/305","id":120107424,"user":{"login":"bartoszkopinski","id":1584002,"avatar_url":"https://avatars.githubusercontent.com/u/1584002?v=3","gravatar_id":"","url":"https://api.github.com/users/bartoszkopinski","html_url":"https://github.com/bartoszkopinski","followers_url":"https://api.github.com/users/bartoszkopinski/followers","following_url":"https://api.github.com/users/bartoszkopinski/following{/other_user}","gists_url":"https://api.github.com/users/bartoszkopinski/gists{/gist_id}","starred_url":"https://api.github.com/users/bartoszkopinski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartoszkopinski/subscriptions","organizations_url":"https://api.github.com/users/bartoszkopinski/orgs","repos_url":"https://api.github.com/users/bartoszkopinski/repos","events_url":"https://api.github.com/users/bartoszkopinski/events{/privacy}","received_events_url":"https://api.github.com/users/bartoszkopinski/received_events","type":"User","site_admin":false},"created_at":"2015-07-09T18:55:18Z","updated_at":"2015-07-09T18:55:18Z","body":"@ryana This is expected, as `?` methods are intended for checking if the key is set and truthy.\r\nSee here: https://github.com/intridea/hashie/blob/edeef5633c9b5efb288bc5ad4530b286470a9196/lib/hashie/mash.rb#L212\r\n\r\n"}}