class TaskJuggler::TextParser::SourceFileInfo
Simple class that holds the info about a source file reference.
Attributes
Public Class Methods
Source
# File lib/taskjuggler/TextParser/SourceFileInfo.rb, line 27 def initialize(file, line, col) @fileName = file @lineNo = line @columnNo = col end
Create a new SourceFileInfo
object. file is the name of the file. line is the line in this file, col is the column number in the line.
Public Instance Methods
Source
# File lib/taskjuggler/TextParser/SourceFileInfo.rb, line 34 def to_s # The column is not reported for now. "#{@fileName}:#{@lineNo}:" end
Return the info in the common “filename:line:” format.