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.



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

def initialize(property, type, container)
  super
end

Class Method Details

.tjpIdObject



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

def RichTextAttribute::tjpId
  'richtext'
end

Instance Method Details

#inputTextObject



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

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

#to_s(query = nil) ⇒ Object



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

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

#to_tjpObject



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

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