aboutsummaryrefslogtreecommitdiffstats
path: root/lib/roo/excelx/cell/string.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/roo/excelx/cell/string.rb')
-rw-r--r--lib/roo/excelx/cell/string.rb19
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/roo/excelx/cell/string.rb b/lib/roo/excelx/cell/string.rb
new file mode 100644
index 0000000..7967806
--- /dev/null
+++ b/lib/roo/excelx/cell/string.rb
@@ -0,0 +1,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