Class: TaskJuggler::DependencyListAttribute

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

Returns a new instance of DependencyListAttribute.



226
227
228
# File 'lib/taskjuggler/Attributes.rb', line 226

def initialize(property, type, container)
  super
end

Class Method Details

.tjpIdObject



230
231
232
# File 'lib/taskjuggler/Attributes.rb', line 230

def DependencyListAttribute::tjpId
  'dependencylist'
end

Instance Method Details

#to_s(query = nil) ⇒ Object



234
235
236
237
238
# File 'lib/taskjuggler/Attributes.rb', line 234

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

#to_tjpObject



240
241
242
243
244
# File 'lib/taskjuggler/Attributes.rb', line 240

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