Module: Workbook::Modules::BookDiffSort::ClassMethods
- Defined in:
- lib/workbook/modules/diff_sort.rb
Instance Method Summary collapse
-
#new_diff_template ⇒ Workbook::Table
Return template table to write the diff result in; in case non exists a default is generated.
Instance Method Details
#new_diff_template ⇒ Workbook::Table
Return template table to write the diff result in; in case non exists a default is generated.
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/workbook/modules/diff_sort.rb', line 13 def new_diff_template diffbook = Workbook::Book.new template = diffbook.template f = template.create_or_find_format_by 'destroyed' f[:background_color]=:red f = template.create_or_find_format_by 'updated' f[:background_color]=:yellow f = template.create_or_find_format_by 'created' f[:background_color]=:lime f = template.create_or_find_format_by 'header' f[:rotation] = 72 f[:font_weight] = :bold f[:height] = 80 diffbook end |