class Webern::Formatters::PdfFormatter
Public Instance Methods
write_to_file()
click to toggle source
# File lib/webern/formatters/pdf_formatter.rb, line 6 def write_to_file data = @prime_row.inversion.map do |i| @prime_row.transpose(i).map do |n| pitch_value(n) end end Prawn::Document.generate("#{@filepath}.pdf") do |pdf| pdf.table data, cell_style: { width: 42, height: 42, align: :center, padding: 10} end end