Class: TaskJuggler::TaskDepListAttribute
- Inherits:
-
ListAttributeBase
- Object
- AttributeBase
- ListAttributeBase
- TaskJuggler::TaskDepListAttribute
- 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) ⇒ TaskDepListAttribute
constructor
A new instance of TaskDepListAttribute.
- #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) ⇒ TaskDepListAttribute
Returns a new instance of TaskDepListAttribute.
646 647 648 |
# File 'lib/taskjuggler/Attributes.rb', line 646 def initialize(property, type, container) super end |
Class Method Details
.tjpId ⇒ Object
650 651 652 |
# File 'lib/taskjuggler/Attributes.rb', line 650 def TaskDepListAttribute::tjpId 'taskdeplist' end |
Instance Method Details
#to_s(query = nil) ⇒ Object
654 655 656 657 658 |
# File 'lib/taskjuggler/Attributes.rb', line 654 def to_s(query = nil) out = [] get.each { |t, onEnd| out << t.fullId } out.join(", ") end |
#to_tjp ⇒ Object
660 661 662 663 664 |
# File 'lib/taskjuggler/Attributes.rb', line 660 def to_tjp out = [] get.each { |t, onEnd| out << t.fullId } @type.id + " " + out.join(', ') end |