Class: Tablemaker::Cell
- Inherits:
-
Frame
- Object
- Frame
- Tablemaker::Cell
show all
- Defined in:
- lib/tablemaker/frame.rb
Instance Attribute Summary
Attributes inherited from Frame
#parent
Instance Method Summary
collapse
Methods inherited from Frame
#dimensions, #last?, #real_cols, #real_dimensions, #real_rows
Constructor Details
#initialize(parent, idx, data) ⇒ Cell
Returns a new instance of Cell.
40
41
42
43
|
# File 'lib/tablemaker/frame.rb', line 40
def initialize(parent, idx, data)
super(parent, idx)
@data = data
end
|
Instance Method Details
#cell_iterator {|_self| ... } ⇒ Object
48
49
50
51
|
# File 'lib/tablemaker/frame.rb', line 48
def cell_iterator
yield self
nil
end
|
#columns ⇒ Object
54
|
# File 'lib/tablemaker/frame.rb', line 54
def columns; 1 end
|
#data ⇒ Object
44
45
46
|
# File 'lib/tablemaker/frame.rb', line 44
def data
@data
end
|
#rows ⇒ Object
53
|
# File 'lib/tablemaker/frame.rb', line 53
def rows; 1 end
|