Skip to content

Instantly share code, notes, and snippets.

@mynyml
Created September 18, 2009 15:24
Show Gist options
  • Save mynyml/189107 to your computer and use it in GitHub Desktop.
Save mynyml/189107 to your computer and use it in GitHub Desktop.
# Run me with:
#
# $ watchr docs.watchr.rb
def run_rdoc
system('rake --silent rdoc')
end
def run_yard
print "\nUpdating yardocs... "
system('rake --silent yardoc')
print "done.\n"
end
def document
run_rdoc
run_yard
end
watch( 'lib/.*\.rb' ) { document }
watch( 'README.rdoc' ) { document }
watch( 'TODO.txt' ) { document }
watch( 'LICENSE' ) { document }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment