Class: XlsxWriter::Row
- Inherits:
-
Object
- Object
- XlsxWriter::Row
- Defined in:
- lib/xlsx_writer/row.rb
Instance Attribute Summary collapse
-
#cells ⇒ Object
readonly
Returns the value of attribute cells.
-
#sheet ⇒ Object
readonly
Returns the value of attribute sheet.
-
#y ⇒ Object
readonly
Returns the value of attribute y.
Instance Method Summary collapse
-
#initialize(sheet, raw_cells, y) ⇒ Row
constructor
A new instance of Row.
- #to_xml ⇒ Object
Constructor Details
Instance Attribute Details
#cells ⇒ Object (readonly)
Returns the value of attribute cells.
4 5 6 |
# File 'lib/xlsx_writer/row.rb', line 4 def cells @cells end |
#sheet ⇒ Object (readonly)
Returns the value of attribute sheet.
3 4 5 |
# File 'lib/xlsx_writer/row.rb', line 3 def sheet @sheet end |
#y ⇒ Object (readonly)
Returns the value of attribute y.
5 6 7 |
# File 'lib/xlsx_writer/row.rb', line 5 def y @y end |
Instance Method Details
#to_xml ⇒ Object
16 17 18 19 20 21 22 23 24 |
# File 'lib/xlsx_writer/row.rb', line 16 def to_xml ary = [] ary << %{<row r="#{y}">} cells.each do |cell| ary << cell.to_xml end ary << %{</row>} ary.join end |