{"action":"closed","issue":{"url":"https://api.github.com/repos/hamstergem/hamster/issues/186","labels_url":"https://api.github.com/repos/hamstergem/hamster/issues/186/labels{/name}","comments_url":"https://api.github.com/repos/hamstergem/hamster/issues/186/comments","events_url":"https://api.github.com/repos/hamstergem/hamster/issues/186/events","html_url":"https://github.com/hamstergem/hamster/issues/186","id":101194142,"number":186,"title":"Vector#to_ary should return self","user":{"login":"xaviershay","id":1714,"avatar_url":"https://avatars.githubusercontent.com/u/1714?v=3","gravatar_id":"","url":"https://api.github.com/users/xaviershay","html_url":"https://github.com/xaviershay","followers_url":"https://api.github.com/users/xaviershay/followers","following_url":"https://api.github.com/users/xaviershay/following{/other_user}","gists_url":"https://api.github.com/users/xaviershay/gists{/gist_id}","starred_url":"https://api.github.com/users/xaviershay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xaviershay/subscriptions","organizations_url":"https://api.github.com/users/xaviershay/orgs","repos_url":"https://api.github.com/users/xaviershay/repos","events_url":"https://api.github.com/users/xaviershay/events{/privacy}","received_events_url":"https://api.github.com/users/xaviershay/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-15T18:05:20Z","updated_at":"2015-08-15T18:16:21Z","closed_at":"2015-08-15T18:16:21Z","body":"`to_ary` is used for implicit conversion only, and as such doesn't need to convert to a Ruby array.\r\n\r\n```\r\nirb(main):060:0> Hamster::Vector[].to_ary.class\r\n=> Array\r\n```\r\n\r\nI can't find canonical documentation for this, but http://stackoverflow.com/questions/9467395/whats-the-difference-between-to-a-and-to-ary-in-activerecord provides a selection of links that seems to support this behaviour."}}