Sha256: ee40abe226ffbf5a24fcc19b21af503cfb9e8d12482689138753f10441b4c0a9
Contents?: true
Size: 1.43 KB
Versions: 1
Compression:
Stored size: 1.43 KB
Contents
#include <ruby.h> #include <xlsxwriter.h> #include "chart.h" #include "chartsheet.h" #include "format.h" #include "rich_string.h" #include "shared_strings.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_const_get(mXlsxWriter, rb_intern("Error")); init_xlsxwriter_workbook(); init_xlsxwriter_workbook_properties(); init_xlsxwriter_format(); init_xlsxwriter_worksheet(); init_xlsxwriter_chart(); init_xlsxwriter_chartsheet(); init_xlsxwriter_rich_string(); init_xlsxwriter_shared_strings_table(); }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
xlsxwriter-0.2.2 | ext/xlsxwriter/xlsxwriter.c |