class Rounders::Matchers::Subject

Attributes

pattern[R]

Public Class Methods

new(pattern) click to toggle source
# File lib/rounders/matchers/subject.rb, line 6
def initialize(pattern)
  @pattern = pattern
end

Public Instance Methods

match(mail) click to toggle source
# File lib/rounders/matchers/subject.rb, line 10
def match(mail)
  return if mail.subject.nil?
  mail.subject.match(pattern)
end