Class: TaskJuggler::ListAttributeBase

Inherits:
AttributeBase show all
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.

Instance Attribute Summary

Attributes inherited from AttributeBase

#inherited, #property, #provided, #type

Class Method Summary collapse

Instance Method Summary collapse

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.



189
190
191
# File 'lib/taskjuggler/AttributeBase.rb', line 189

def initialize(property, type, container)
  super
end

Class Method Details

.isList?Boolean

We overwrite this for ListAttributeBase.

Returns:

  • (Boolean)


202
203
204
# File 'lib/taskjuggler/AttributeBase.rb', line 202

def ListAttributeBase::isList?
  true
end

Instance Method Details

#isList?Boolean

Returns:

  • (Boolean)


197
198
199
# File 'lib/taskjuggler/AttributeBase.rb', line 197

def isList?
  true
end

#to_sObject



193
194
195
# File 'lib/taskjuggler/AttributeBase.rb', line 193

def to_s
  get.join(', ')
end