class EmailReplyParser::Fragment
Represents a group of paragraphs in the email sharing common attributes. Paragraphs should get their own fragment if they are a quoted area or a signature.
Attributes
content[R]
reversed, this array is backwards, and contains reversed strings.
lines[R]
reversed, this array is backwards, and contains reversed strings.
Public Class Methods
new(quoted, first_line)
click to toggle source
# File lib/email_reply_parser.rb, line 248 def initialize(quoted, first_line) self.signature = self.hidden = false self.quoted = quoted @lines = [first_line] @content = nil @lines.compact! end
Public Instance Methods
finish()
click to toggle source
Builds the string content by joining the lines and reversing them.
Returns nothing.
# File lib/email_reply_parser.rb, line 263 def finish @content = @lines.join("\n") @lines = nil @content.reverse! end
inspect()
click to toggle source
# File lib/email_reply_parser.rb, line 273 def inspect to_s.inspect end
to_s()
click to toggle source
# File lib/email_reply_parser.rb, line 269 def to_s @content end