Module: MailExtract
- Defined in:
- lib/mail_extract.rb,
lib/mail_extract/line.rb,
lib/mail_extract/parser.rb,
lib/mail_extract/version.rb
Defined Under Namespace
Constant Summary collapse
- VERSION =
"0.1.4".freeze
Class Method Summary collapse
-
.new(body, options = {}) ⇒ MailExtract::Parser
Shortcut to MailExtract::Parser.new.
-
.parse(body, options = {}) ⇒ String
Parse the email message.
Class Method Details
.new(body, options = {}) ⇒ MailExtract::Parser
Shortcut to MailExtract::Parser.new
body - Email message contents options - Parser options
13 14 15 |
# File 'lib/mail_extract.rb', line 13 def new(body, ={}) MailExtract::Parser.new(body, ) end |
.parse(body, options = {}) ⇒ String
Parse the email message
body - Email message contents options - Parser options
24 25 26 |
# File 'lib/mail_extract.rb', line 24 def parse(body, ={}) MailExtract::Parser.new(body, ).body end |