Sha256: 0039a64f2f746f53ef7fbdf3890777bd87ac7bc869b0a9410e8dafd2ea66ad09

Contents?: true

Size: 1.03 KB

Versions: 5

Compression:

Stored size: 1.03 KB

Contents

#include <ruby.h>
#include "xlsxwriter.h"
#include "chart.h"
#include "format.h"
#include "workbook.h"
#include "workbook_properties.h"
#include "worksheet.h"

VALUE mXlsxWriter;

/*  Document-module: XlsxWriter
 *
 *  XlsxWriter is a ruby interface to libxlsxwriter.
 *
 *  It provides a couple of useful shorthands (like being able to pass cells and
 *  ranges as both numbers, cell strings and range strings.
 *
 *  It also has column authowidth functionality partially taken from Axlsx gem
 *  enable by default.
 *
 *  Simple example of using the XlsxWriter to generate an xlsx file containing
 *  'Hello' string in the first rows of column 'A':
 *
 *     XlsxWriter::Workbook.open('/tmp/text.xlsx') do |wb|
 *       ws.add_worksheet do |ws|
 *         10.times { |i| ws.add_row ['Hello!'] }
 *       end
 *     end
 */
void Init_xlsxwriter() {
  mXlsxWriter = rb_define_module("XlsxWriter");

  init_xlsxwriter_workbook();
  init_xlsxwriter_workbook_properties();
  init_xlsxwriter_format();
  init_xlsxwriter_worksheet();
  init_xlsxwriter_chart();
}

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
xlsxwriter-0.0.6 ext/xlsxwriter/xlsxwriter.c
xlsxwriter-0.0.5 ext/xlsxwriter/xlsxwriter.c
xlsxwriter-0.0.4 ext/xlsxwriter/xlsxwriter.c
xlsxwriter-0.0.4.pre.2 ext/xlsxwriter/xlsxwriter.c
xlsxwriter-0.0.3 ext/xlsxwriter/xlsxwriter.c