lib/mail_extract.rb in mail_extract-0.1.3 vs lib/mail_extract.rb in mail_extract-0.1.4

- old
+ new

@@ -3,12 +3,26 @@ module MailExtract class << self # Shortcut to MailExtract::Parser.new # + # body - Email message contents + # options - Parser options + # # @return [MailExtract::Parser] # def new(body, options={}) MailExtract::Parser.new(body, options) + end + + # Parse the email message + # + # body - Email message contents + # options - Parser options + # + # @return [String] + # + def parse(body, options={}) + MailExtract::Parser.new(body, options).body end end end