Class: TaskJuggler::DependencyListAttribute
- Inherits:
-
ListAttributeBase
- Object
- AttributeBase
- ListAttributeBase
- TaskJuggler::DependencyListAttribute
- 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
-
#initialize(property, type, container) ⇒ DependencyListAttribute
constructor
A new instance of DependencyListAttribute.
- #to_s(query = nil) ⇒ Object
- #to_tjp ⇒ Object
Methods inherited from ListAttributeBase
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
.tjpId ⇒ Object
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_tjp ⇒ Object
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 |