class Mail::Matchers::AttachmentMimeTypeMatcher

Attributes

mime_type[R]

Public Class Methods

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

Public Instance Methods

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