Class: RubyRTF::Table::Row
- Inherits:
-
Object
- Object
- RubyRTF::Table::Row
- Defined in:
- lib/ruby-rtf/table.rb
Defined Under Namespace
Classes: Cell
Instance Attribute Summary collapse
-
#cells ⇒ Object
Returns the value of attribute cells.
-
#end_positions ⇒ Object
Returns the value of attribute end_positions.
-
#table ⇒ Object
Returns the value of attribute table.
Instance Method Summary collapse
- #add_cell ⇒ Object
- #current_cell ⇒ Object
-
#initialize(table) ⇒ Row
constructor
A new instance of Row.
Constructor Details
Instance Attribute Details
#cells ⇒ Object
Returns the value of attribute cells.
23 24 25 |
# File 'lib/ruby-rtf/table.rb', line 23 def cells @cells end |
#end_positions ⇒ Object
Returns the value of attribute end_positions.
23 24 25 |
# File 'lib/ruby-rtf/table.rb', line 23 def end_positions @end_positions end |
#table ⇒ Object
Returns the value of attribute table.
23 24 25 |
# File 'lib/ruby-rtf/table.rb', line 23 def table @table end |
Instance Method Details
#add_cell ⇒ Object
36 37 38 39 40 41 |
# File 'lib/ruby-rtf/table.rb', line 36 def add_cell return @cells.last if @cells.last.sections.empty? @cells << RubyRTF::Table::Row::Cell.new(self, @cells.length) @cells.last end |
#current_cell ⇒ Object
32 33 34 |
# File 'lib/ruby-rtf/table.rb', line 32 def current_cell @cells.last end |