Module: Mail::RFC2822::Address0
- Defined in:
- lib/mail/parsers/rfc2822.rb
Instance Method Summary collapse
Instance Method Details
#comments ⇒ Object
2848 2849 2850 2851 2852 |
# File 'lib/mail/parsers/rfc2822.rb', line 2848 def comments comments = [] dig_comments(comments, elements) comments end |
#dig_comments(comments, elements) ⇒ Object
2839 2840 2841 2842 2843 2844 2845 2846 |
# File 'lib/mail/parsers/rfc2822.rb', line 2839 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 |