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.



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

def initialize(property, type, container)
  super
end

Class Method Details

.tjpIdObject



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

def TaskDepListAttribute::tjpId
  'taskdeplist'
end

Instance Method Details

#to_s(query = nil) ⇒ Object



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

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

#to_tjpObject



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

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