class TaskJuggler::PlaceHolderCell
This class is used to model cells that are just placeholders for a line of an embedded ReportTable
.
Public Class Methods
Source
# File lib/taskjuggler/reports/ReportTableCell.rb, line 386 def initialize(line, embeddedLine) @line = line @line.addCell(self) if line @embeddedLine = embeddedLine end
Create a new placeholder cell. line is the line that this cell belongs to. embeddedLine is the ReportTableLine
that is embedded in this cell.
Public Instance Methods
Source
# File lib/taskjuggler/reports/ReportTableCell.rb, line 395 def to_csv(csv, columnIdx, lineIdx) @embeddedLine.to_csv(csv, columnIdx, lineIdx) end
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.