So I'm building a URL and the base comes from a config file where I don't know whether it's coming in with parameters. I want to add some parameters, so I need to know if my separator should be ? or &. I'm not doing anything fancy, just a quick string concat. Here's how the statement came out, I thought it was funny:
separator = base.include?("?") ? "&" : "?"