Class: Roo::Excelx::Cell::String
- Defined in:
- lib/roo/excelx/cell/string.rb
Instance Attribute Summary collapse
-
#cell_value ⇒ Object
readonly
Returns the value of attribute cell_value.
-
#coordinate ⇒ Object
readonly
Returns the value of attribute coordinate.
-
#format ⇒ Object
readonly
Returns the value of attribute format.
-
#formula ⇒ Object
readonly
Returns the value of attribute formula.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Attributes inherited from Base
Instance Method Summary collapse
- #empty? ⇒ Boolean
-
#initialize(value, formula, style, link, coordinate) ⇒ String
constructor
A new instance of String.
Methods inherited from Base
#excelx_type, #excelx_value, #formula?, #hyperlink, #link, #link?, #presence, #to_s, #type
Methods included from Helpers::DefaultAttrReader
Constructor Details
#initialize(value, formula, style, link, coordinate) ⇒ String
Returns a new instance of String.
9 10 11 |
# File 'lib/roo/excelx/cell/string.rb', line 9 def initialize(value, formula, style, link, coordinate) super(value, formula, nil, style, link, coordinate) end |
Instance Attribute Details
#cell_value ⇒ Object (readonly)
Returns the value of attribute cell_value.
5 6 7 |
# File 'lib/roo/excelx/cell/string.rb', line 5 def cell_value @cell_value end |
#coordinate ⇒ Object (readonly)
Returns the value of attribute coordinate.
5 6 7 |
# File 'lib/roo/excelx/cell/string.rb', line 5 def coordinate @coordinate end |
#format ⇒ Object (readonly)
Returns the value of attribute format.
5 6 7 |
# File 'lib/roo/excelx/cell/string.rb', line 5 def format @format end |
#formula ⇒ Object (readonly)
Returns the value of attribute formula.
5 6 7 |
# File 'lib/roo/excelx/cell/string.rb', line 5 def formula @formula end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
5 6 7 |
# File 'lib/roo/excelx/cell/string.rb', line 5 def value @value end |
Instance Method Details
#empty? ⇒ Boolean
13 14 15 |
# File 'lib/roo/excelx/cell/string.rb', line 13 def empty? value.empty? end |