Class: Rrxcell::Cell

Inherits:
Object
  • Object
show all
Defined in:
lib/rrxcell/cell.rb

Direct Known Subclasses

Excel::Cell, Excelx::Cell

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(row, position) ⇒ Cell

Returns a new instance of Cell.



4
5
6
7
8
# File 'lib/rrxcell/cell.rb', line 4

def initialize(row, position)
  super()
  @row = row
  @position = position
end

Instance Attribute Details

#positionObject (readonly)

Returns the value of attribute position.



2
3
4
# File 'lib/rrxcell/cell.rb', line 2

def position
  @position
end

#rowObject (readonly)

Returns the value of attribute row.



2
3
4
# File 'lib/rrxcell/cell.rb', line 2

def row
  @row
end

Instance Method Details

#bookObject



10
11
12
# File 'lib/rrxcell/cell.rb', line 10

def book
  row.book
end

#objectObject



14
15
16
# File 'lib/rrxcell/cell.rb', line 14

def object
  raise ShouldBeImplementedError
end

#sheetObject



18
19
20
# File 'lib/rrxcell/cell.rb', line 18

def sheet
  row.sheet
end

#valueObject



22
23
24
# File 'lib/rrxcell/cell.rb', line 22

def value
  raise ShouldBeImplementedError
end