lib/writeexcel/workbook.rb in writeexcel-0.3.1 vs lib/writeexcel/workbook.rb in writeexcel-0.3.2

- old
+ new

@@ -710,21 +710,21 @@ # # workbook.set_custom_color(40, 255, 102, 0 ) # Orange # workbook.set_custom_color(40, 0xFF, 0x66, 0x00) # Same thing # workbook.set_custom_color(40, '#FF6600' ) # Same thing # - # font = workbook.add_format(color => 40) # Use the modified colour + # font = workbook.add_format(:color => 40) # Use the modified colour # # The return value from set_custom_color() is the index of the colour that # was changed: # # ferrari = workbook.set_custom_color(40, 216, 12, 12) # # format = workbook.add_format( - # bg_color => $ferrari, - # pattern => 1, - # border => 1 + # :bg_color => $ferrari, + # :pattern => 1, + # :border => 1 # ) # def set_custom_color(index = nil, red = nil, green = nil, blue = nil) # Match a HTML #xxyyzz style parameter if !red.nil? && red =~ /^#(\w\w)(\w\w)(\w\w)/ @@ -971,13 +971,13 @@ # external applications that read or index windows files. # # The properties should be passed as a hash of values as follows: # # workbook.set_properties( - # title => 'This is an example spreadsheet', - # author => 'cxn03651', - # comments => 'Created with Ruby and WriteExcel', + # :title => 'This is an example spreadsheet', + # :author => 'cxn03651', + # :comments => 'Created with Ruby and WriteExcel', # ) # # The properties that can be set are: # # * title @@ -992,11 +992,11 @@ # User defined properties are not supported due to effort required. # # You can also pass UTF-8 strings as properties. # # $workbook->set_properties( - # subject => "住所録", + # :subject => "住所録", # ); # # Usually WriteExcel allows you to use UTF-16. However, document properties # don't support UTF-16 for these type of strings. # @@ -1004,10 +1004,10 @@ # consider adding a comment such as the following when using document # properties: # # workbook.set_properties( # ..., - # comments => 'Created with Ruby and WriteExcel', + # :comments => 'Created with Ruby and WriteExcel', # ..., # ) # # See also the properties.rb program in the examples directory of the distro. #