summaryrefslogtreecommitdiffstats
path: root/lib/roo/excelx/cell/string.rb
blob: 796780682044c65b9bc10112f546582e2959355a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
module Roo
  class Excelx
    class Cell
      class String < Cell::Base
        attr_reader :value, :formula, :format, :cell_type, :cell_value, :link, :coordinate

        def initialize(value, formula, style, link, coordinate)
          super(value, formula, nil, style, link, coordinate)
          @type = @cell_type = :string
          @value = link? ? Roo::Link.new(link, value) : value
        end

        def empty?
          value.empty?
        end
      end
    end
  end
end