class Mail::Matchers::AttachmentFilenameMatcher

Attributes

filename[R]

Public Class Methods

new(filename) click to toggle source
# File lib/mail/matchers/attachment_matchers.rb, line 24
def initialize(filename)
  @filename = filename
end

Public Instance Methods

===(other) click to toggle source
# File lib/mail/matchers/attachment_matchers.rb, line 28
def ===(other)
  other.attachment? && other.filename == filename
end