if/else/end.foo outputs incorrect code using the ternary operator · Issue #342 · prettier/plugin-ruby · GitHub
garrick aden-buie on Twitter: "JavaScript has a ternary operator condition ? if_its_true : if_its_false that's shorthand for if (condition) { if_its_true } else { if_its_false } What if we had this in #
![Ruby has some pretty obscure syntax and operators that allow you to write nonsense like this. : r/ruby Ruby has some pretty obscure syntax and operators that allow you to write nonsense like this. : r/ruby](https://preview.redd.it/omgccam1hit81.png?width=1076&format=png&auto=webp&s=438bd4d7e750ed1836c7b8e4842e6eb0fa2ac88d)