Skip to content

Instantly share code, notes, and snippets.

@practicingruby
Created August 28, 2009 12:00
Show Gist options
  • Select an option

  • Save practicingruby/176931 to your computer and use it in GitHub Desktop.

Select an option

Save practicingruby/176931 to your computer and use it in GitHub Desktop.
RGhost::Document.new do |doc|
doc.matrix_grid do |g|
g.column 'row'
g.column 'name'
g.column 'race'
g.style(:border_lines)
g.data(@data_array)
end
doc.render :pdf, :filename => 'rghost.pdf'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment