Class: TaskJuggler::StringAttribute

Inherits:
AttributeBase 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 AttributeBase

#get, #id, #inherit, isList?, #isList?, mode, #name, #nil?, #reset, #set, setMode, #to_num, #to_rti, #to_s, #to_sort

Constructor Details

#initialize(property, type, container) ⇒ StringAttribute

Returns a new instance of StringAttribute.



612
613
614
# File 'lib/taskjuggler/Attributes.rb', line 612

def initialize(property, type, container)
  super
end

Class Method Details

.tjpIdObject



616
617
618
# File 'lib/taskjuggler/Attributes.rb', line 616

def StringAttribute::tjpId
  'text'
end

Instance Method Details

#to_tjpObject



620
621
622
# File 'lib/taskjuggler/Attributes.rb', line 620

def to_tjp
  "#{@type.id} #{quotedString(get)}"
end