{"action":"created","issue":{"url":"https://api.github.com/repos/manastech/crystal/issues/503","labels_url":"https://api.github.com/repos/manastech/crystal/issues/503/labels{/name}","comments_url":"https://api.github.com/repos/manastech/crystal/issues/503/comments","events_url":"https://api.github.com/repos/manastech/crystal/issues/503/events","html_url":"https://github.com/manastech/crystal/issues/503","id":63831301,"number":503,"title":"`Class#superclass` - will it be possible at some point?","user":{"login":"waterlink","id":609046,"avatar_url":"https://avatars.githubusercontent.com/u/609046?v=3","gravatar_id":"","url":"https://api.github.com/users/waterlink","html_url":"https://github.com/waterlink","followers_url":"https://api.github.com/users/waterlink/followers","following_url":"https://api.github.com/users/waterlink/following{/other_user}","gists_url":"https://api.github.com/users/waterlink/gists{/gist_id}","starred_url":"https://api.github.com/users/waterlink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/waterlink/subscriptions","organizations_url":"https://api.github.com/users/waterlink/orgs","repos_url":"https://api.github.com/users/waterlink/repos","events_url":"https://api.github.com/users/waterlink/events{/privacy}","received_events_url":"https://api.github.com/users/waterlink/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-23T21:01:12Z","updated_at":"2015-03-25T23:30:36Z","closed_at":null,"body":"And friends:\r\n- `Class#===`\r\n- `Class#<` and `Class#<=`\r\n"},"comment":{"url":"https://api.github.com/repos/manastech/crystal/issues/comments/86251784","html_url":"https://github.com/manastech/crystal/issues/503#issuecomment-86251784","issue_url":"https://api.github.com/repos/manastech/crystal/issues/503","id":86251784,"user":{"login":"asterite","id":209371,"avatar_url":"https://avatars.githubusercontent.com/u/209371?v=3","gravatar_id":"","url":"https://api.github.com/users/asterite","html_url":"https://github.com/asterite","followers_url":"https://api.github.com/users/asterite/followers","following_url":"https://api.github.com/users/asterite/following{/other_user}","gists_url":"https://api.github.com/users/asterite/gists{/gist_id}","starred_url":"https://api.github.com/users/asterite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asterite/subscriptions","organizations_url":"https://api.github.com/users/asterite/orgs","repos_url":"https://api.github.com/users/asterite/repos","events_url":"https://api.github.com/users/asterite/events{/privacy}","received_events_url":"https://api.github.com/users/asterite/received_events","type":"User","site_admin":false},"created_at":"2015-03-25T23:30:36Z","updated_at":"2015-03-25T23:30:36Z","body":"Good!\r\n\r\nYou can also write it like this:\r\n\r\n```crystal\r\ndef transform_strategy(value)\r\n  case value\r\n  when Int    then TransformationA\r\n  when Float  then TransformationB\r\n  when String then TransformationC\r\n  else             DefaultTransformation\r\n  end\r\nend\r\n```"}}