class TaskJuggler::ResourceListAttribute
Public Class Methods
new(property, type, container)
click to toggle source
Calls superclass method
TaskJuggler::ListAttributeBase::new
# File lib/taskjuggler/Attributes.rb, line 483 def initialize(property, type, container) super end
tjpId()
click to toggle source
# File lib/taskjuggler/Attributes.rb, line 487 def ResourceListAttribute::tjpId 'resourcelist' end
Public Instance Methods
to_rti(query = nil)
click to toggle source
# File lib/taskjuggler/Attributes.rb, line 497 def to_rti(query = nil) out = [] if query get.each do |r| if query.listItem rti = RichText.new(query.listItem, RTFHandlers.create(r.project)). generateIntermediateFormat q = query.dup q.property = r rti.setQuery(q) out << "<nowiki>#{rti.to_s}</nowiki>" else out << "<nowiki>#{r.name}</nowiki>" end end query.assignList(out) else get.each { |r| out << r.name } rText = RichText.new(out.join(', ')) rText.generateIntermediateFormat end end
to_s(query = nil)
click to toggle source
# File lib/taskjuggler/Attributes.rb, line 491 def to_s(query = nil) out = [] get.each { |r| out << r.fullId } out.join(", ") end
to_tjp()
click to toggle source
# File lib/taskjuggler/Attributes.rb, line 520 def to_tjp out = [] get.each { |r| out << r.fullId } @type.id + " " + out.join(', ') end