Skip to content

Instantly share code, notes, and snippets.

@joshavant
Created December 3, 2014 07:39
Show Gist options
  • Save joshavant/1d904bd5b001fc78afdc to your computer and use it in GitHub Desktop.
Save joshavant/1d904bd5b001fc78afdc to your computer and use it in GitHub Desktop.
def sublevel_of_work_category?(path)
category = path.split('/').first
if category != 'work'
false
else
path.split('/').count > 2
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment