{"action":"created","issue":{"url":"https://api.github.com/repos/ruby/ruby/issues/1821","repository_url":"https://api.github.com/repos/ruby/ruby","labels_url":"https://api.github.com/repos/ruby/ruby/issues/1821/labels{/name}","comments_url":"https://api.github.com/repos/ruby/ruby/issues/1821/comments","events_url":"https://api.github.com/repos/ruby/ruby/issues/1821/events","html_url":"https://github.com/ruby/ruby/pull/1821","id":298626696,"number":1821,"title":"create Class#to_proc method","user":{"login":"Nondv","id":2451896,"avatar_url":"https://avatars2.githubusercontent.com/u/2451896?v=4","gravatar_id":"","url":"https://api.github.com/users/Nondv","html_url":"https://github.com/Nondv","followers_url":"https://api.github.com/users/Nondv/followers","following_url":"https://api.github.com/users/Nondv/following{/other_user}","gists_url":"https://api.github.com/users/Nondv/gists{/gist_id}","starred_url":"https://api.github.com/users/Nondv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nondv/subscriptions","organizations_url":"https://api.github.com/users/Nondv/orgs","repos_url":"https://api.github.com/users/Nondv/repos","events_url":"https://api.github.com/users/Nondv/events{/privacy}","received_events_url":"https://api.github.com/users/Nondv/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-20T15:03:22Z","updated_at":"2018-02-20T15:44:40Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/ruby/ruby/pulls/1821","html_url":"https://github.com/ruby/ruby/pull/1821","diff_url":"https://github.com/ruby/ruby/pull/1821.diff","patch_url":"https://github.com/ruby/ruby/pull/1821.patch"},"body":"Hello!\r\n\r\nThis is for this suggestion:\r\nhttps://bugs.ruby-lang.org/issues/14498\r\n\r\n```\r\nclass Dog\r\n  attr_reader :name\r\n\r\n  def initialize(name)\r\n    @name = name\r\n  end\r\nend\r\n\r\nnames = %w[Lucky Pluto Balto]\r\nnames.map(&Dog)\r\n```\r\n\r\n\r\nI am pretty sure there's a better way to create instances (without `rb_funcallv`).\r\nAnd I am not sure if I should've let using only one argument"},"comment":{"url":"https://api.github.com/repos/ruby/ruby/issues/comments/367019344","html_url":"https://github.com/ruby/ruby/pull/1821#issuecomment-367019344","issue_url":"https://api.github.com/repos/ruby/ruby/issues/1821","id":367019344,"user":{"login":"Nondv","id":2451896,"avatar_url":"https://avatars2.githubusercontent.com/u/2451896?v=4","gravatar_id":"","url":"https://api.github.com/users/Nondv","html_url":"https://github.com/Nondv","followers_url":"https://api.github.com/users/Nondv/followers","following_url":"https://api.github.com/users/Nondv/following{/other_user}","gists_url":"https://api.github.com/users/Nondv/gists{/gist_id}","starred_url":"https://api.github.com/users/Nondv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nondv/subscriptions","organizations_url":"https://api.github.com/users/Nondv/orgs","repos_url":"https://api.github.com/users/Nondv/repos","events_url":"https://api.github.com/users/Nondv/events{/privacy}","received_events_url":"https://api.github.com/users/Nondv/received_events","type":"User","site_admin":false},"created_at":"2018-02-20T15:44:40Z","updated_at":"2018-02-20T15:44:40Z","author_association":"NONE","body":"Basically this is equal to monkeypatch\r\n\r\n```ruby\r\nclass Class\r\n  def to_proc\r\n    proc { |*args| new(*args) }\r\n  end\r\nend\r\n```"}}
{"actor":{"display_login":"Nondv"}}