Class: TaskJuggler::RichTextAttribute
Instance Attribute Summary
#inherited, #property, #provided, #type
Class Method Summary
collapse
Instance Method Summary
collapse
#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
537
538
539
|
# File 'lib/taskjuggler/Attributes.rb', line 537
def RichTextAttribute::tjpId
'richtext'
end
|
Instance Method Details
#inputText ⇒ Object
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
|
545
546
547
|
# File 'lib/taskjuggler/Attributes.rb', line 545
def to_tjp
"#{@type.id} #{quotedString(get.richText.inputText)}"
end
|