Class: TaskJuggler::ListAttributeBase
- Inherits:
-
AttributeBase
- Object
- AttributeBase
- TaskJuggler::ListAttributeBase
- Defined in:
- lib/taskjuggler/AttributeBase.rb
Overview
The ListAttributeBase is a specialized form of AttributeBase for a list of values instead of a single value. It will be used as a base class for all attributes that hold lists.
Direct Known Subclasses
AccountCreditListAttribute, AllocationAttribute, BookingListAttribute, ChargeListAttribute, ChargeSetListAttribute, ColumnListAttribute, DefinitionListAttribute, DependencyListAttribute, FlagListAttribute, FormatListAttribute, JournalSortListAttribute, LeaveAllowanceListAttribute, LeaveListAttribute, LogicalExpressionListAttribute, NodeListAttribute, ResourceListAttribute, ScenarioListAttribute, SortListAttribute, SymbolListAttribute, TaskDepListAttribute, TaskListAttribute, TimeIntervalListAttribute
Instance Attribute Summary
Attributes inherited from AttributeBase
#inherited, #property, #provided, #type
Class Method Summary collapse
-
.isList? ⇒ Boolean
We overwrite this for ListAttributeBase.
Instance Method Summary collapse
-
#initialize(property, type, container) ⇒ ListAttributeBase
constructor
A new instance of ListAttributeBase.
- #isList? ⇒ Boolean
- #to_s ⇒ Object
Methods inherited from AttributeBase
#get, #id, #inherit, mode, #name, #nil?, #reset, #set, setMode, #to_num, #to_rti, #to_sort, #to_tjp
Constructor Details
#initialize(property, type, container) ⇒ ListAttributeBase
Returns a new instance of ListAttributeBase.
183 184 185 |
# File 'lib/taskjuggler/AttributeBase.rb', line 183 def initialize(property, type, container) super end |
Class Method Details
.isList? ⇒ Boolean
We overwrite this for ListAttributeBase.
196 197 198 |
# File 'lib/taskjuggler/AttributeBase.rb', line 196 def ListAttributeBase::isList? true end |
Instance Method Details
#isList? ⇒ Boolean
191 192 193 |
# File 'lib/taskjuggler/AttributeBase.rb', line 191 def isList? true end |
#to_s ⇒ Object
187 188 189 |
# File 'lib/taskjuggler/AttributeBase.rb', line 187 def to_s get.join(', ') end |