lib/taskjuggler/TextParser/SourceFileInfo.rb in taskjuggler-3.1.0 vs lib/taskjuggler/TextParser/SourceFileInfo.rb in taskjuggler-3.2.0
- old
+ new
@@ -9,28 +9,33 @@
# This program is free software; you can redistribute it and/or modify
# it under the terms of version 2 of the GNU General Public License as
# published by the Free Software Foundation.
#
-class TaskJuggler::TextParser
+class TaskJuggler
- # Simple class that holds the info about a source file reference.
- class SourceFileInfo
+ class TextParser
- attr_reader :fileName, :lineNo, :columnNo
+ # Simple class that holds the info about a source file reference.
+ class SourceFileInfo
- # 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.
- def initialize(file, line, col)
- @fileName = file
- @lineNo = line
- @columnNo = col
- end
+ attr_reader :fileName, :lineNo, :columnNo
- # Return the info in the common "filename:line:" format.
- def to_s
- # The column is not reported for now.
- "#{@fileName}:#{@lineNo}:"
+ # 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.
+ def initialize(file, line, col)
+ @fileName = file
+ @lineNo = line
+ @columnNo = col
+ end
+
+ # Return the info in the common "filename:line:" format.
+ def to_s
+ # The column is not reported for now.
+ "#{@fileName}:#{@lineNo}:"
+ end
+
end
end
end