Class: TaskJuggler::RichTextAttribute

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_sort

Constructor Details

#initialize(property, type, container) ⇒ RichTextAttribute

Returns a new instance of RichTextAttribute.



529
530
531
# File 'lib/taskjuggler/Attributes.rb', line 529

def initialize(property, type, container)
  super
end

Class Method Details

.tjpIdObject



537
538
539
# File 'lib/taskjuggler/Attributes.rb', line 537

def RichTextAttribute::tjpId
  'richtext'
end

Instance Method Details

#inputTextObject



533
534
535
# File 'lib/taskjuggler/Attributes.rb', line 533

def inputText
  (v = get) ? v.richText.inputText : ''
end

#to_s(query = nil) ⇒ Object



541
542
543
# File 'lib/taskjuggler/Attributes.rb', line 541

def to_s(query = nil)
  (v = get) ? v.to_s : ''
end

#to_tjpObject



545
546
547
# File 'lib/taskjuggler/Attributes.rb', line 545

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