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.
226 227 228 |
# File 'lib/taskjuggler/Attributes.rb', line 226 def initialize(property, type, container) super end |
Class Method Details
.tjpId ⇒ Object
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_tjp ⇒ Object
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 |