Module: Mail::RFC2822::Mailbox0
- Defined in:
- lib/mail/parsers/rfc2822.rb
Instance Method Summary (collapse)
Instance Method Details
- (Object) comments
2812 2813 2814 2815 2816 |
# File 'lib/mail/parsers/rfc2822.rb', line 2812 def comments comments = [] dig_comments(comments, elements) comments end |
- (Object) dig_comments(comments, elements)
2803 2804 2805 2806 2807 2808 2809 2810 |
# 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 |