class TaskJuggler::TagFile::TagFileEntry

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

Attributes

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

Public Class Methods

new(tag, file, line, kind) click to toggle source

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

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

Public Instance Methods

<=>(e) click to toggle source

Used to sort the tag file entries by tag.

# File lib/taskjuggler/reports/TagFile.rb, line 44
def <=>(e)
  @tag <=> e.tag
end
to_ctags() click to toggle source

Convert the entry into a ctags compatible line.

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