{"action":"created","issue":{"url":"https://api.github.com/repos/manastech/crystal/issues/949","labels_url":"https://api.github.com/repos/manastech/crystal/issues/949/labels{/name}","comments_url":"https://api.github.com/repos/manastech/crystal/issues/949/comments","events_url":"https://api.github.com/repos/manastech/crystal/issues/949/events","html_url":"https://github.com/manastech/crystal/issues/949","id":93643106,"number":949,"title":"Create class instances dynamically","user":{"login":"hugoabonizio","id":1206395,"avatar_url":"https://avatars.githubusercontent.com/u/1206395?v=3","gravatar_id":"","url":"https://api.github.com/users/hugoabonizio","html_url":"https://github.com/hugoabonizio","followers_url":"https://api.github.com/users/hugoabonizio/followers","following_url":"https://api.github.com/users/hugoabonizio/following{/other_user}","gists_url":"https://api.github.com/users/hugoabonizio/gists{/gist_id}","starred_url":"https://api.github.com/users/hugoabonizio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hugoabonizio/subscriptions","organizations_url":"https://api.github.com/users/hugoabonizio/orgs","repos_url":"https://api.github.com/users/hugoabonizio/repos","events_url":"https://api.github.com/users/hugoabonizio/events{/privacy}","received_events_url":"https://api.github.com/users/hugoabonizio/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-07-07T22:23:30Z","updated_at":"2015-07-07T23:38:11Z","closed_at":null,"body":"I couldn't find a way to do something like this http://stackoverflow.com/questions/2556193/reflection-in-ruby-instantiate-an-object-by-given-class-name \r\n\r\nMaybe we need a Object.const_get implementation or is there another way?"},"comment":{"url":"https://api.github.com/repos/manastech/crystal/issues/comments/119374731","html_url":"https://github.com/manastech/crystal/issues/949#issuecomment-119374731","issue_url":"https://api.github.com/repos/manastech/crystal/issues/949","id":119374731,"user":{"login":"kostya","id":95060,"avatar_url":"https://avatars.githubusercontent.com/u/95060?v=3","gravatar_id":"","url":"https://api.github.com/users/kostya","html_url":"https://github.com/kostya","followers_url":"https://api.github.com/users/kostya/followers","following_url":"https://api.github.com/users/kostya/following{/other_user}","gists_url":"https://api.github.com/users/kostya/gists{/gist_id}","starred_url":"https://api.github.com/users/kostya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kostya/subscriptions","organizations_url":"https://api.github.com/users/kostya/orgs","repos_url":"https://api.github.com/users/kostya/repos","events_url":"https://api.github.com/users/kostya/events{/privacy}","received_events_url":"https://api.github.com/users/kostya/received_events","type":"User","site_admin":false},"created_at":"2015-07-07T23:38:11Z","updated_at":"2015-07-07T23:38:11Z","body":"```ruby\r\nclass A\r\n  def bla\r\n    p :bla\r\n  end\r\nend\r\n\r\nmacro make_proc(name)\r\n  {% a = name.split(\"#\") %}\r\n  cl = {{a[0].capitalize.id}}.new\r\n  ->cl.{{a[1].id}}\r\nend\r\n\r\nmake_proc(\"a#bla\").call\r\n```"}}