Sha256: bf15cfcb3209bce44540b9df4dd410bb252485f3eac699767e24271f45abaf9a
Contents?: true
Size: 976 Bytes
Versions: 1
Compression:
Stored size: 976 Bytes
Contents
module Spread2RDF class Spreadsheet class Worksheet < Sheet self.attributes = { } attr_reader :cell_mapping attr_reader :graph def initialize(parent, options={}, &block) super @cell_mapping = {} @graph = RDF::Repository.new end def init index_columns! end =begin def cell_mapping_by_name(name) end def cell_mapping_by_coord(coord) end =end def index_columns! column_index = start_coord.column_as_number each_column do |column| column.instance_variable_set :@coord, Roo::Base.number_to_letter(column_index) column_index += 1 end end def row_range range = roo { (Coord[start].row .. spreadsheet.roo.last_row) } range.begin <= range.end ? range : nil end private end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spread2rdf-0.0.1pre.1 | lib/spread2rdf/spreadsheet/worksheet.rb |