Class: TaskJuggler::TaskListAttribute

Inherits:
ListAttributeBase show all
Defined in:
lib/taskjuggler/Attributes.rb

Instance Attribute Summary

Attributes inherited from AttributeBase

#inherited, #property, #provided, #type

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from ListAttributeBase

#isList?, isList?

Methods inherited from AttributeBase

#get, #id, #inherit, isList?, #isList?, mode, #name, #nil?, #reset, #set, setMode, #to_num, #to_rti, #to_sort

Constructor Details

#initialize(property, type, container) ⇒ TaskListAttribute

Returns a new instance of TaskListAttribute.



668
669
670
# File 'lib/taskjuggler/Attributes.rb', line 668

def initialize(property, type, container)
  super
end

Class Method Details

.tjpIdObject



672
673
674
# File 'lib/taskjuggler/Attributes.rb', line 672

def TaskListAttribute::tjpId
  'tasklist'
end

Instance Method Details

#to_s(query = nil) ⇒ Object



676
677
678
679
680
# File 'lib/taskjuggler/Attributes.rb', line 676

def to_s(query = nil)
  out = []
  get.each { |t| out << t.fullId }
  out.join(", ")
end

#to_tjpObject



682
683
684
685
686
# File 'lib/taskjuggler/Attributes.rb', line 682

def to_tjp
  out = []
  get.each { |t| out << t.fullId }
  @type.id + " " + out.join(', ')
end