Sha256: 7a4c82d3ee6d54e8f620109c5f0f786a22bb14f73b011cac918c7c3cd6f2ba89

Contents?: true

Size: 699 Bytes

Versions: 20

Compression:

Stored size: 699 Bytes

Contents

module RubyXL

  module LegacyCell
    def workbook
      @worksheet.workbook
    end

    private

    def validate_workbook()
      unless workbook.nil? || workbook.worksheets.nil?
        workbook.worksheets.each { |sheet|
          unless sheet.nil? || sheet.sheet_data.nil? || sheet.sheet_data[row].nil?
            if sheet.sheet_data[row][column] == self
              return
            end
          end
        }
      end
      raise "This cell #{self} is not in workbook #{workbook}"
    end

    def validate_worksheet()
      return if @worksheet && @worksheet[row] && @worksheet[row][column].equal?(self)
      raise "Cell #{self} is not in worksheet #{worksheet}"
    end

  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
rubyXL-3.4.23 lib/rubyXL/cell.rb
rubyXL-3.4.22 lib/rubyXL/cell.rb
rubyXL-3.4.21 lib/rubyXL/cell.rb
rubyXL-3.4.20 lib/rubyXL/cell.rb
rubyXL-3.4.18 lib/rubyXL/cell.rb
rubyXL-3.4.17 lib/rubyXL/cell.rb
rubyXL-3.4.16 lib/rubyXL/cell.rb
rubyXL-3.4.15 lib/rubyXL/cell.rb
rubyXL-3.4.14 lib/rubyXL/cell.rb
rubyXL-3.4.12 lib/rubyXL/cell.rb
rubyXL-3.4.11 lib/rubyXL/cell.rb
rubyXL-3.4.10 lib/rubyXL/cell.rb
rubyXL-3.4.9 lib/rubyXL/cell.rb
rubyXL-3.4.8 lib/rubyXL/cell.rb
rubyXL-3.4.6 lib/rubyXL/cell.rb
rubyXL-3.4.5 lib/rubyXL/cell.rb
rubyXL-3.4.4 lib/rubyXL/cell.rb
rubyXL-3.4.3 lib/rubyXL/cell.rb
rubyXL-3.4.2 lib/rubyXL/cell.rb
rubyXL-3.4.1 lib/rubyXL/cell.rb