diff options
| author | Sudhir <[email protected]> | 2014-01-08 22:55:07 +0530 |
|---|---|---|
| committer | Sudhir <[email protected]> | 2014-01-08 22:55:07 +0530 |
| commit | 162b73253a1e2663df09713b63ca93d3f7a69b43 (patch) | |
| tree | 999a5fc1413a312927f548d427c08903e42c8860 /lib/axlsx/stylesheet/styles.rb | |
| parent | 986ee4d4087cfbac4de1d13f3b660386917e7035 (diff) | |
| download | caxlsx-162b73253a1e2663df09713b63ca93d3f7a69b43.tar.gz caxlsx-162b73253a1e2663df09713b63ca93d3f7a69b43.zip | |
Fixing typo in documentation. ws.styles!!
Replaced ws.style with ws.styles.
Diffstat (limited to 'lib/axlsx/stylesheet/styles.rb')
| -rw-r--r-- | lib/axlsx/stylesheet/styles.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/axlsx/stylesheet/styles.rb b/lib/axlsx/stylesheet/styles.rb index 067ed1fa..7970e0c1 100644 --- a/lib/axlsx/stylesheet/styles.rb +++ b/lib/axlsx/stylesheet/styles.rb @@ -151,7 +151,7 @@ module Axlsx # ws = p.workbook.add_worksheet # # # black text on a white background at 14pt with thin borders! - # title = ws.style.add_style(:bg_color => "FFFF0000", :fg_color=>"#FF000000", :sz=>14, :border=> {:style => :thin, :color => "FFFF0000"} + # title = ws.styles.add_style(:bg_color => "FFFF0000", :fg_color=>"#FF000000", :sz=>14, :border=> {:style => :thin, :color => "FFFF0000"} # # ws.add_row ["Least Popular Pets"] # ws.add_row ["", "Dry Skinned Reptiles", "Bald Cats", "Violent Parrots"], :style=>title @@ -168,18 +168,18 @@ module Axlsx # ws = p.workbook.add_worksheet # # # define your styles - # title = ws.style.add_style(:bg_color => "FFFF0000", + # title = ws.styles.add_style(:bg_color => "FFFF0000", # :fg_color=>"#FF000000", # :border=>Axlsx::STYLE_THIN_BORDER, # :alignment=>{:horizontal => :center}) # - # date_time = ws.style.add_style(:num_fmt => Axlsx::NUM_FMT_YYYYMMDDHHMMSS, + # date_time = ws.styles.add_style(:num_fmt => Axlsx::NUM_FMT_YYYYMMDDHHMMSS, # :border=>Axlsx::STYLE_THIN_BORDER) # - # percent = ws.style.add_style(:num_fmt => Axlsx::NUM_FMT_PERCENT, + # percent = ws.styles.add_style(:num_fmt => Axlsx::NUM_FMT_PERCENT, # :border=>Axlsx::STYLE_THIN_BORDER) # - # currency = ws.style.add_style(:format_code=>"¥#,##0;[Red]¥-#,##0", + # currency = ws.styles.add_style(:format_code=>"¥#,##0;[Red]¥-#,##0", # :border=>Axlsx::STYLE_THIN_BORDER) # # # build your rows |
