Sha256: ec40f6119079cd8825cabb5dabc1f024124723d1ce02e4ac65e632c33ff0b08d

Contents?: true

Size: 670 Bytes

Versions: 6

Compression:

Stored size: 670 Bytes

Contents

require 'examples/example_workbook'

# $ bundle exec ruby examples/simple.rb

# create a workbook with 1 row and 5 columns
ExampleWorkbook.new("simple") do

  worksheet('1 row, 5 columns') {
    column
    column
    column
    column
    column

    row {

      # put data into the row (infer type)
      [1, "text", 123.45, "<>&'\"/", "$45.23"].each do |data_value|
        cell(data_value)
      end

    }
  }

  worksheet('2 rows, 2 columns') {
    2.times do
      column
    end

    2.times do
      row {

        # put data into the row (infer type)
        [1, 2].each do |data_value|
          cell { data data_value }
        end

      }
    end
  }

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
xmlss-1.0.1 examples/simple.rb
xmlss-1.0.0 examples/simple.rb
xmlss-1.0.0.rc.4 examples/simple.rb
xmlss-1.0.0.rc.3 examples/simple.rb
xmlss-1.0.0.rc.2 examples/simple.rb
xmlss-1.0.0.rc.1 examples/simple.rb