Skip to content

Instantly share code, notes, and snippets.

@rivant
Created October 30, 2015 15:28
Show Gist options
  • Save rivant/a7afc8382e21a850c0ac to your computer and use it in GitHub Desktop.
Save rivant/a7afc8382e21a850c0ac to your computer and use it in GitHub Desktop.
From this...
def status
if @pass
:info
else
:error
end
end
To this...
def status
return :info if @pass
:error
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment