Skip to content

Instantly share code, notes, and snippets.

View textarcana's full-sized avatar

Noah Sussman textarcana

View GitHub Profile
# for multiline ruby statements in haml...
= { :foo => :bar, |
:baz => :foo, |
:quux => :zz}.inspect |
# the magical 'pipe' strikes again.
@textarcana
textarcana / gist:81210
Created March 18, 2009 15:49 — forked from oddlyzen/gist:81195
rake task to build documentation
namespace :rdoc do
desc "Generate RDocs for ZepInvest (exluding RESTful Authentication Plugin)"
task :generate do
puts "Generating RDocs for ZepInvest (exluding RESTful Authentication Plugin)"
`rdoc --exclude restful_authentication -o zepdocs ; open zepdocs/index.html`
puts "DONE!"
end
desc "Remove old docs and regenerate RDocs for ZepInvest (exluding RESTful Authentication Plugin)"
namespace :rdoc do
desc "Generate RDocs for ZepInvest (exluding RESTful Authentication Plugin)"
task :generate do
puts "Generating RDocs for ZepInvest (exluding RESTful Authentication Plugin)"
`rdoc --exclude restful_authentication -o zepdocs ; open zepdocs/index.html`
puts "DONE!"
end
desc "Remove old docs and regenerate RDocs for ZepInvest (exluding RESTful Authentication Plugin)"