Class: PnoteClient::Documents::Hml::TableRow
- Inherits:
-
Object
- Object
- PnoteClient::Documents::Hml::TableRow
- Defined in:
- lib/pnote_client/documents/hml/table_row.rb
Instance Attribute Summary collapse
-
#cells ⇒ Object
readonly
Returns the value of attribute cells.
Class Method Summary collapse
Instance Method Summary collapse
- #add_cell(cell) ⇒ Object
- #content ⇒ Object
-
#initialize ⇒ TableRow
constructor
A new instance of TableRow.
Constructor Details
#initialize ⇒ TableRow
Returns a new instance of TableRow.
20 21 22 |
# File 'lib/pnote_client/documents/hml/table_row.rb', line 20 def initialize @cells = [] end |
Instance Attribute Details
#cells ⇒ Object (readonly)
Returns the value of attribute cells.
18 19 20 |
# File 'lib/pnote_client/documents/hml/table_row.rb', line 18 def cells @cells end |
Class Method Details
Instance Method Details
#add_cell(cell) ⇒ Object
24 25 26 |
# File 'lib/pnote_client/documents/hml/table_row.rb', line 24 def add_cell(cell) @cells << cell end |
#content ⇒ Object
28 29 30 |
# File 'lib/pnote_client/documents/hml/table_row.rb', line 28 def content return @cells.map {|cell| cell.content} end |