Class: TaskJuggler::FlagListAttribute

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

Methods inherited from ListAttributeBase

#isList?, isList?

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) ⇒ FlagListAttribute

Returns a new instance of FlagListAttribute.



278
279
280
# File 'lib/taskjuggler/Attributes.rb', line 278

def initialize(property, type, container)
  super
end

Class Method Details

.tjpIdObject



282
283
284
# File 'lib/taskjuggler/Attributes.rb', line 282

def FlagListAttribute::tjpId
  'flaglist'
end

Instance Method Details

#to_s(query = nil) ⇒ Object



286
287
288
# File 'lib/taskjuggler/Attributes.rb', line 286

def to_s(query = nil)
  get.join(', ')
end

#to_tjpObject



290
291
292
# File 'lib/taskjuggler/Attributes.rb', line 290

def to_tjp
  "flags #{get.join(', ')}"
end