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.
668 669 670 |
# File 'lib/taskjuggler/Attributes.rb', line 668 def initialize(property, type, container) super end |
Class Method Details
.tjpId ⇒ Object
672 673 674 |
# File 'lib/taskjuggler/Attributes.rb', line 672 def TaskListAttribute::tjpId 'tasklist' end |
Instance Method Details
#to_s(query = nil) ⇒ Object
676 677 678 679 680 |
# File 'lib/taskjuggler/Attributes.rb', line 676 def to_s(query = nil) out = [] get.each { |t| out << t.fullId } out.join(", ") end |
#to_tjp ⇒ Object
682 683 684 685 686 |
# File 'lib/taskjuggler/Attributes.rb', line 682 def to_tjp out = [] get.each { |t| out << t.fullId } @type.id + " " + out.join(', ') end |