Class TaskJuggler::TagFile::TagFileEntry
In: lib/taskjuggler/reports/TagFile.rb
Parent: Object

The TagFileEntry class is used to store the intermediate representation of the TagFile.

Methods

<=>   new   to_ctags  

Attributes

file  [R] 
kind  [R] 
line  [R] 
tag  [R] 

Public Class methods

Create a new TagFileEntry object. tag is the property ID. file is the source file name, line the line number in this file. kind specifies the property type. The following types should be used: r : Resource t : Task p : Report

[Source]

# File lib/taskjuggler/reports/TagFile.rb, line 35
      def initialize(tag, file, line, kind)
        @tag = tag
        @file = file
        @line = line
        @kind = kind
      end

Public Instance methods

Used to sort the tag file entries by tag.

[Source]

# File lib/taskjuggler/reports/TagFile.rb, line 43
      def <=>(e)
        @tag <=> e.tag
      end

Convert the entry into a ctags compatible line.

[Source]

# File lib/taskjuggler/reports/TagFile.rb, line 48
      def to_ctags
        "#{@tag}\t#{@file}\t#{@line};\"\t#{@kind}\n"
      end

[Validate]