Class: Roo::Excelx::Cell::Empty

Inherits:
Base
  • Object
show all
Defined in:
lib/roo/excelx/cell/empty.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#style

Instance Method Summary collapse

Methods inherited from Base

#excelx_type, #excelx_value, #formula?, #link?, #to_s, #type

Constructor Details

#initialize(coordinate) ⇒ Empty

Returns a new instance of Empty.



8
9
10
11
# File 'lib/roo/excelx/cell/empty.rb', line 8

def initialize(coordinate)
  @value = @formula = @format = @cell_type = @cell_value = @hyperlink = nil
  @coordinate = coordinate
end

Instance Attribute Details

#cell_typeObject (readonly)

Returns the value of attribute cell_type.



6
7
8
# File 'lib/roo/excelx/cell/empty.rb', line 6

def cell_type
  @cell_type
end

#cell_valueObject (readonly)

Returns the value of attribute cell_value.



6
7
8
# File 'lib/roo/excelx/cell/empty.rb', line 6

def cell_value
  @cell_value
end

#coordinateObject (readonly)

Returns the value of attribute coordinate.



6
7
8
# File 'lib/roo/excelx/cell/empty.rb', line 6

def coordinate
  @coordinate
end

#formatObject (readonly)

Returns the value of attribute format.



6
7
8
# File 'lib/roo/excelx/cell/empty.rb', line 6

def format
  @format
end

#formulaObject (readonly)

Returns the value of attribute formula.



6
7
8
# File 'lib/roo/excelx/cell/empty.rb', line 6

def formula
  @formula
end

Returns the value of attribute hyperlink.



6
7
8
# File 'lib/roo/excelx/cell/empty.rb', line 6

def hyperlink
  @hyperlink
end

#valueObject (readonly)

Returns the value of attribute value.



6
7
8
# File 'lib/roo/excelx/cell/empty.rb', line 6

def value
  @value
end

Instance Method Details

#empty?Boolean

Returns:



13
14
15
# File 'lib/roo/excelx/cell/empty.rb', line 13

def empty?
  true
end