Module: Pickle::Email::Parser

Defined in:
lib/pickle/email/parser.rb

Overview

add ability to parse emails

Instance Method Summary (collapse)

Instance Method Details

- (Object) capture_email



9
10
11
# File 'lib/pickle/email/parser.rb', line 9

def capture_email
  "(#{match_email})"
end

- (Object) capture_index_in_email



13
14
15
# File 'lib/pickle/email/parser.rb', line 13

def capture_index_in_email
  "(?:#{match_prefix}?(?:#{capture_index} )?email)"
end

- (Object) match_email



5
6
7
# File 'lib/pickle/email/parser.rb', line 5

def match_email
  "(?:#{match_prefix}?(?:#{match_index} )?email)"
end