Class: Rrxcell::Row

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

Direct Known Subclasses

Excel::Row, Excelx::Row

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(sheet, position) ⇒ Row

Returns a new instance of Row.



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

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

Instance Attribute Details

#objectObject (readonly)

Returns the value of attribute object.



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

def object
  @object
end

#positionObject (readonly)

Returns the value of attribute position.



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

def position
  @position
end

#sheetObject (readonly)

Returns the value of attribute sheet.



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

def sheet
  @sheet
end

Instance Method Details

#[](position) ⇒ Object



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

def [](position)
  column(position)
end

#bookObject



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

def book
  sheet.book
end

#column(position) ⇒ Object



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

def column(position)
  raise ShouldBeImplementedError
end