Sha256: aa76fedd55c86d5405bafed2f02cb146d24ca05e41f916b1428ab51ebc14311d
Contents?: true
Size: 1.29 KB
Versions: 1
Compression:
Stored size: 1.29 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; VALUE rbLibVersion; VALUE eXlsxWriterError; /* 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 * enabled 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"); rbLibVersion = rb_str_new_cstr(lxw_version()); rb_define_const(mXlsxWriter, "LIBRARY_VERSION", rbLibVersion); eXlsxWriterError = rb_define_class_id_under(mXlsxWriter, rb_intern("Error"), rb_eStandardError); init_xlsxwriter_workbook(); init_xlsxwriter_workbook_properties(); init_xlsxwriter_format(); init_xlsxwriter_worksheet(); init_xlsxwriter_chart(); }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
xlsxwriter-0.2.0.pre | ext/xlsxwriter/xlsxwriter.c |