Class: TaskJuggler::PlaceHolderCell
- Defined in:
- lib/taskjuggler/reports/ReportTableCell.rb
Overview
This class is used to model cells that are just placeholders for a line of an embedded ReportTable.
Instance Method Summary collapse
-
#initialize(line, embeddedLine) ⇒ PlaceHolderCell
constructor
Create a new placeholder cell.
-
#to_csv(csv, columnIdx, lineIdx) ⇒ Object
Add the current cell to the csv CSV Arrays.
- #to_html ⇒ Object
Constructor Details
#initialize(line, embeddedLine) ⇒ PlaceHolderCell
Create a new placeholder cell. line is the line that this cell belongs to. embeddedLine is the ReportTableLine that is embedded in this cell.
383 384 385 386 387 |
# File 'lib/taskjuggler/reports/ReportTableCell.rb', line 383 def initialize(line, ) @line = line @line.addCell(self) if line @embeddedLine = end |
Instance Method Details
#to_csv(csv, columnIdx, lineIdx) ⇒ Object
Add the current cell to the csv CSV Arrays. columnIdx is the start column in the csv. lineIdx is the index of the current line. The return value is the number of added cells.
392 393 394 |
# File 'lib/taskjuggler/reports/ReportTableCell.rb', line 392 def to_csv(csv, columnIdx, lineIdx) @embeddedLine.to_csv(csv, columnIdx, lineIdx) end |
#to_html ⇒ Object
396 397 398 |
# File 'lib/taskjuggler/reports/ReportTableCell.rb', line 396 def to_html nil end |