Maybe this is better?

``` ruby
def type_of_content(content)
  return :scss if content.match(/;|{/)
  :sass
end
```