Class: TaskJuggler::TaskDepListAttribute

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) ⇒ TaskDepListAttribute

Returns a new instance of TaskDepListAttribute.



646
647
648
# File 'lib/taskjuggler/Attributes.rb', line 646

def initialize(property, type, container)
  super
end

Class Method Details

.tjpIdObject



650
651
652
# File 'lib/taskjuggler/Attributes.rb', line 650

def TaskDepListAttribute::tjpId
  'taskdeplist'
end

Instance Method Details

#to_s(query = nil) ⇒ Object



654
655
656
657
658
# File 'lib/taskjuggler/Attributes.rb', line 654

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

#to_tjpObject



660
661
662
663
664
# File 'lib/taskjuggler/Attributes.rb', line 660

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