Sha256: 9d2313f3e481f7f7e417761733ef71e568a79b38e06fb7fca7d6e1cfd9498918

Contents?: true

Size: 449 Bytes

Versions: 1

Compression:

Stored size: 449 Bytes

Contents

module POI
  class Area
    def initialize reference
      @ref = reference
    end
    
    def in workbook
      begin
        area.getAllReferencedCells.collect{|c| workbook.cell c.formatAsString}
      rescue
        []
      end
    end
    
    def single_cell_reference?
      @ref == area.getFirstCell.formatAsString
    end
    
    private
      def area
        @area ||= org.apache.poi.ss.util.AreaReference.new(@ref)
      end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jruby-poi-0.6.1 lib/poi/workbook/area.rb