lib/email_reply_parser.rb
def signature_line?(line)
      regex = /(--|__|\w-$)|(^(\w+\s*){1,3} #{"Sent from my".reverse}$)/
      signature_detected = line =~ regex
      signature_detected = line_is_signature_name?(line) if !signature_detected
      signature_detected
    end
# Detects if a given line is the beginning of a signature
#
# line - A String line of text from the email.
#
# Returns true if the line is the beginning of a signature, or false.
Detects if a given line is the beginning of a signature
line - A String line of text from the email.

Returns true if the line is the beginning of a signature, or false.
Detects if a given line is the beginning of a signature line - A String line of text from the email . Returns true if the line is the beginning of a signature or false .
def signature_line?(line)
      regex = /(--|__|\w-$)|(^(\w+\s*){1,3} #{"Sent from my".reverse}$)/
      signature_detected = line =~ regex
      signature_detected = line_is_signature_name?(line) if !signature_detected
      signature_detected
    end
def signature_line? ( line ) regex = / (--|__| \w -$)|(^( \w + \s *){1,3}  #{ "Sent from my" . reverse } $) / signature_detected = line =~ regex signature_detected = line_is_signature_name? ( line ) if ! signature_detected signature_detected end
Detects if a given line is the beginning of a signature
line - A String line of text from the email.
Detects if a given line is the beginning of a signature line - A String line of text from the email .
line