aboutsummaryrefslogtreecommitdiffstats
path: root/lib/carlosgoce/layout/layouts.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/carlosgoce/layout/layouts.rb')
-rw-r--r--lib/carlosgoce/layout/layouts.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/carlosgoce/layout/layouts.rb b/lib/carlosgoce/layout/layouts.rb
index e9c1ce8..f9594ca 100644
--- a/lib/carlosgoce/layout/layouts.rb
+++ b/lib/carlosgoce/layout/layouts.rb
@@ -9,13 +9,14 @@ module CarlosGoce
tables = []
Prawn::Document.generate(file) do
+ font_size = 16
+
data.each do |k, month|
days = data[k][:days]
-
- # text data[k][:name]
cells = (days).to_a.each_slice(7).to_a
+ cells.unshift [data[k][:name]]
- tables << make_table(cells, :cell_style => {:align => :center})
+ tables << make_table(cells, cell_style: {align: :center, size: 7, border_width: 0})
end
table(