Class: Mail::Matchers::AttachmentFilenameMatcher
- Inherits:
-
Object
- Object
- Mail::Matchers::AttachmentFilenameMatcher
- Defined in:
- lib/mail/matchers/attachment_matchers.rb
Instance Attribute Summary collapse
-
#filename ⇒ Object
readonly
Returns the value of attribute filename.
Instance Method Summary collapse
- #===(other) ⇒ Object
-
#initialize(filename) ⇒ AttachmentFilenameMatcher
constructor
A new instance of AttachmentFilenameMatcher.
Constructor Details
#initialize(filename) ⇒ AttachmentFilenameMatcher
Returns a new instance of AttachmentFilenameMatcher.
24 25 26 |
# File 'lib/mail/matchers/attachment_matchers.rb', line 24 def initialize(filename) @filename = filename end |
Instance Attribute Details
#filename ⇒ Object (readonly)
Returns the value of attribute filename.
23 24 25 |
# File 'lib/mail/matchers/attachment_matchers.rb', line 23 def filename @filename end |
Instance Method Details
#===(other) ⇒ Object
28 29 30 |
# File 'lib/mail/matchers/attachment_matchers.rb', line 28 def ===(other) other. && other.filename == filename end |