diff options
Diffstat (limited to 'examples/example.rb')
| -rw-r--r-- | examples/example.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/example.rb b/examples/example.rb index 8ad5f2a7..e1fc945e 100644 --- a/examples/example.rb +++ b/examples/example.rb @@ -1,6 +1,6 @@ #!/usr/bin/env ruby -w -s # -*- coding: utf-8 -*- -$LOAD_PATH.unshift "#{File.dirname(__FILE__)}/../lib" +# $LOAD_PATH.unshift "#{File.dirname(__FILE__)}/../lib" #```ruby require 'axlsx' @@ -21,7 +21,9 @@ end #Using Custom Styles #```ruby -#Each cell allows a single, predified style. When using add_row, the value in the :style array at the same index as the cell's column will be applied to that cell. Alternatively, you can apply a style to an entire row by using an integer value for :style. +# Each cell allows a single, predified style. +# When using add_row, the value in the :style array at the same index as the cell's column will be applied to that cell. +# Alternatively, you can apply a style to an entire row by using an integer value for :style. wb.styles do |s| black_cell = s.add_style :bg_color => "00", :fg_color => "FF", :sz => 14, :alignment => { :horizontal=> :center } |
