Module: Pickle::Email::Parser

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

Overview

add ability to parse emails

Instance Method Summary collapse

Instance Method Details

#capture_emailObject


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

def capture_email
  "(#{match_email})"
end

#capture_index_in_emailObject


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

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

#match_emailObject


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

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