Class: ExtendedEmailReplyParser::Parsers::I18nDe

Inherits:
Base
  • Object
show all
Defined in:
lib/extended_email_reply_parser/parsers/i18n_de.rb

Instance Attribute Summary

Attributes inherited from Base

#text

Instance Method Summary collapse

Methods inherited from Base

add_quote_header_regex, #except_in_visible_block_quotes, #hide_everything_after, #initialize, quote_header_regexes, #remove_empty_lines_between_block_quote_lines, subclasses

Constructor Details

This class inherits a constructor from ExtendedEmailReplyParser::Parsers::Base

Instance Method Details

#parseObject



5
6
7
8
9
10
11
12
13
# File 'lib/extended_email_reply_parser/parsers/i18n_de.rb', line 5

def parse
  remove_empty_lines_between_block_quote_lines
  except_in_visible_block_quotes do
    hide_everything_after ["Von: ", "Gesendet: ", "An: "]
    hide_everything_after ["Gesendet: ", "Von: ", "An: "]
    hide_everything_after ["Von: ", "An: ", "Gesendet: "]
    hide_everything_after ["Am ", "schrieb "]
  end
end