Sha256: 42b2b5f7d3eb0e99918ba999e4ca33306f7994a72a914280d75c88a5140d0c60
Contents?: true
Size: 629 Bytes
Versions: 2
Compression:
Stored size: 629 Bytes
Contents
# Copyright:: Autotelik Media Ltd # Author :: Tom Statter # Date :: July 2010 # License:: # # # Extend the Sporeadsheet classes with some of our common methods # # ... to do extract into separate module with pure ruby that works with both POI and Spreadsheet require 'excel_base' module Spreadsheet class Worksheet include DataShift::ExcelBase # Convert array into a header row def set_headers(headers, _apply_style = nil) return if headers.empty? headers.each_with_index do |header, i| self[0, i] = header.to_s end end def num_rows rows.size end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
datashift-0.40.1 | lib/applications/spreadsheet_extensions.rb |
datashift-0.40.0 | lib/applications/spreadsheet_extensions.rb |