Parent

Class/Module Index [+]

Quicksearch

TaskJuggler::ReferenceAttribute

Public Class Methods

new(property, type, container) click to toggle source
# File lib/taskjuggler/Attributes.rb, line 447
def initialize(property, type, container)
  super
end
tjpId() click to toggle source
# File lib/taskjuggler/Attributes.rb, line 451
def ReferenceAttribute::tjpId
  'reference'
end

Public Instance Methods

label() click to toggle source
# File lib/taskjuggler/Attributes.rb, line 474
def label
  (v = get) ? (v[1] ? v[1][0] : v[0]) : nil
end
to_rti(query) click to toggle source
# File lib/taskjuggler/Attributes.rb, line 459
def to_rti(query)
  return nil unless get

  rText = RichText.new("[#{url} #{label}]")
  rText.generateIntermediateFormat
end
to_s(query) click to toggle source
# File lib/taskjuggler/Attributes.rb, line 455
def to_s(query)
  url || ''
end
to_tjp() click to toggle source
# File lib/taskjuggler/Attributes.rb, line 466
def to_tjp
  "#{@type.id} \"#{url}\"#{label ? " { label \"#{label}\" }" : ''}"
end
url() click to toggle source
# File lib/taskjuggler/Attributes.rb, line 470
def url
  (v = get) ? v[0] : nil
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.