summaryrefslogtreecommitdiffhomepage
path: root/examples/example.rb
diff options
context:
space:
mode:
authorRandy Morgan <[email protected]>2012-05-03 20:59:31 +0900
committerRandy Morgan <[email protected]>2012-05-03 20:59:31 +0900
commit0c03d9de78936ff04469039795877fa5672a54a3 (patch)
tree5fbe463517ba46845ff5d3748c91605ad42ed956 /examples/example.rb
parent865ac88ef8325899c2c2c025a6994e02447b699b (diff)
downloadcaxlsx-0c03d9de78936ff04469039795877fa5672a54a3.tar.gz
caxlsx-0c03d9de78936ff04469039795877fa5672a54a3.zip
1.1.4 release prep
Diffstat (limited to 'examples/example.rb')
-rw-r--r--examples/example.rb6
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 }