class Rounders::Matchers::Body
Attributes
pattern[R]
Public Class Methods
new(pattern)
click to toggle source
# File lib/rounders/matchers/body.rb, line 6 def initialize(pattern) @pattern = pattern end
Public Instance Methods
match(mail)
click to toggle source
# File lib/rounders/matchers/body.rb, line 10 def match(mail) mail.text.match(pattern) end