Class: TaskJuggler::TaskListAttribute
- Inherits:
-
ListAttributeBase
- Object
- AttributeBase
- ListAttributeBase
- TaskJuggler::TaskListAttribute
- 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) ⇒ TaskListAttribute
constructor
A new instance of TaskListAttribute.
- #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) ⇒ TaskListAttribute
Returns a new instance of TaskListAttribute.
669 670 671 |
# File 'lib/taskjuggler/Attributes.rb', line 669 def initialize(property, type, container) super end |
Class Method Details
.tjpId ⇒ Object
673 674 675 |
# File 'lib/taskjuggler/Attributes.rb', line 673 def TaskListAttribute::tjpId 'tasklist' end |
Instance Method Details
#to_s(query = nil) ⇒ Object
677 678 679 680 681 |
# File 'lib/taskjuggler/Attributes.rb', line 677 def to_s(query = nil) out = [] get.each { |t| out << t.fullId } out.join(", ") end |
#to_tjp ⇒ Object
683 684 685 686 687 |
# File 'lib/taskjuggler/Attributes.rb', line 683 def to_tjp out = [] get.each { |t| out << t.fullId } @type.id + " " + out.join(', ') end |