diff options
author | Carlos Goce <carlosgoce@gmail.com> | 2015-01-24 22:51:55 +0100 |
---|---|---|
committer | Carlos Goce <carlosgoce@gmail.com> | 2015-01-24 22:51:55 +0100 |
commit | 36d4411136969d56312533f95e7bedd53415138e (patch) | |
tree | 01f046a35ace6d944e73a9ffa15bd32063000ae5 /lib | |
parent | f5dcaef3c8771ce3b6ed29d0c3dac1a540c11b6a (diff) | |
download | pdf-calendars-36d4411136969d56312533f95e7bedd53415138e.tar.gz pdf-calendars-36d4411136969d56312533f95e7bedd53415138e.tar.bz2 pdf-calendars-36d4411136969d56312533f95e7bedd53415138e.zip |
Add day names to design
Diffstat (limited to 'lib')
-rw-r--r-- | lib/carlosgoce/layout/layouts.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/carlosgoce/layout/layouts.rb b/lib/carlosgoce/layout/layouts.rb index a841e4f..6a18513 100644 --- a/lib/carlosgoce/layout/layouts.rb +++ b/lib/carlosgoce/layout/layouts.rb @@ -12,7 +12,8 @@ module CarlosGoce data[:months].each do |k, month| days = month[:formatted_days] - cells = days.to_a.each_slice(7).to_a + cells = days.to_a.each_slice(6).to_a + cells.unshift %w(L M X V S D) cells.unshift [month[:name]] tables << make_table(cells, cell_style: {align: :center, size: 7, border_width: 0}) |