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.



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

def initialize(property, type, container)
  super
end

Class Method Details

.tjpIdObject



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

def DependencyListAttribute::tjpId
  'dependencylist'
end

Instance Method Details

#to_s(query = nil) ⇒ Object



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

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

#to_tjpObject



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

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