{"action":"closed","issue":{"url":"https://api.github.com/repos/getfretless/ruby/issues/1","labels_url":"https://api.github.com/repos/getfretless/ruby/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/getfretless/ruby/issues/1/comments","events_url":"https://api.github.com/repos/getfretless/ruby/issues/1/events","html_url":"https://github.com/getfretless/ruby/issues/1","id":93866217,"number":1,"title":"Ternary Operators","user":{"login":"mileszs","id":2425,"avatar_url":"https://avatars.githubusercontent.com/u/2425?v=3","gravatar_id":"","url":"https://api.github.com/users/mileszs","html_url":"https://github.com/mileszs","followers_url":"https://api.github.com/users/mileszs/followers","following_url":"https://api.github.com/users/mileszs/following{/other_user}","gists_url":"https://api.github.com/users/mileszs/gists{/gist_id}","starred_url":"https://api.github.com/users/mileszs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mileszs/subscriptions","organizations_url":"https://api.github.com/users/mileszs/orgs","repos_url":"https://api.github.com/users/mileszs/repos","events_url":"https://api.github.com/users/mileszs/events{/privacy}","received_events_url":"https://api.github.com/users/mileszs/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-08T19:11:20Z","updated_at":"2015-07-08T20:02:45Z","closed_at":"2015-07-08T20:02:45Z","body":"The guide says:\r\n\r\n> Avoid the ternary operator (?:) except in cases where all expressions are extremely trivial. However, do use the ternary operator(?:) over if/then/else/end constructs for single line conditionals.\r\n\r\nI somewhat disagree with the second point. I prefer if/then/else/end constructs over the more traditional ternary operator when need if/else on a single line. (Agree with avoiding it as often as possible.)\r\n\r\nWhat do you guys think?"}}