Class Index [+]

Quicksearch

TaskJuggler::RichTextAttribute

Public Class Methods

new(property, type) click to toggle source
     # File lib/taskjuggler/Attributes.rb, line 480
480:     def initialize(property, type)
481:       super
482:     end
tjpId() click to toggle source
     # File lib/taskjuggler/Attributes.rb, line 488
488:     def RichTextAttribute::tjpId
489:       'richtext'
490:     end

Public Instance Methods

inputText() click to toggle source
     # File lib/taskjuggler/Attributes.rb, line 484
484:     def inputText
485:       @value ? @value.richText.inputText : ''
486:     end
to_s(query = nil) click to toggle source
     # File lib/taskjuggler/Attributes.rb, line 492
492:     def to_s(query = nil)
493:       @value ? @value.to_s : ''
494:     end
to_tjp() click to toggle source
     # File lib/taskjuggler/Attributes.rb, line 496
496:     def to_tjp
497:       inputText = @value.richText.inputText
498:       if inputText[1] == \n\
499:         "#{@type.id} -8<-\n#{inputText}\n->8-"
500:       else
501:         escaped = inputText.gsub("\"", '\"')
502:         "#{@type.id} \"#{escaped}\""
503:       end
504:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.