module Mail::RFC2822::Mailbox0 - mail-2.5.4 Documentation

# module Mail::RFC2822::Mailbox0

### Public Instance Methods

comments() click to toggle source

    # File lib/mail/parsers/rfc2822.rb, line 2812
    def comments
      comments = []
      dig_comments(comments, elements)
      comments
    end

dig_comments(comments, elements) click to toggle source

    # File lib/mail/parsers/rfc2822.rb, line 2803
    def dig_comments(comments, elements)
      elements.each { |elem|
        if elem.respond_to?(:comment)
          comments << elem.comment
        end
        dig_comments(comments, elem.elements) if elem.elements
       }
    end