Class TaskJuggler::TextParser::SourceFileInfo
In: lib/taskjuggler/TextParser/SourceFileInfo.rb
Parent: Object

Simple class that holds the info about a source file reference.

Methods

new   to_s  

Attributes

columnNo  [R] 
fileName  [R] 
lineNo  [R] 

Public Class methods

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.

[Source]

# File lib/taskjuggler/TextParser/SourceFileInfo.rb, line 26
      def initialize(file, line, col)
        @fileName = file
        @lineNo = line
        @columnNo = col
      end

Public Instance methods

Return the info in the common "filename:line:" format.

[Source]

# File lib/taskjuggler/TextParser/SourceFileInfo.rb, line 33
      def to_s
        # The column is not reported for now.
        "#{@fileName}:#{@lineNo}:"
      end

[Validate]