Skip to content

Instantly share code, notes, and snippets.

@goshacmd
Created December 16, 2012 19:06
Show Gist options
  • Save goshacmd/4311462 to your computer and use it in GitHub Desktop.
Save goshacmd/4311462 to your computer and use it in GitHub Desktop.
myfreeweb/filesortd better matching DSL idea
# with current DSL
folder '~/Downloads' do
kind 'Movie' do
downloaded_from %r{destroyallsoftware} do
# do stuff
end
end
end
# with better matching DSL & label matcher
folder '~/Downloads' do
match kind: 'Movie', downloaded_from: %r{destroyallsoftware}, label: :gray do
# do stuff
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment