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.
530
531
532
|
# File 'lib/taskjuggler/Attributes.rb', line 530
def initialize(property, type, container)
super
end
|
Class Method Details
538
539
540
|
# File 'lib/taskjuggler/Attributes.rb', line 538
def RichTextAttribute::tjpId
'richtext'
end
|
Instance Method Details
#inputText ⇒ Object
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
|
546
547
548
|
# File 'lib/taskjuggler/Attributes.rb', line 546
def to_tjp
"#{@type.id} #{quotedString(get.richText.inputText)}"
end
|