Class: Filter::Matchers::Boolean

Inherits:
Base
  • Object
show all
Defined in:
lib/filter/matchers/boolean.rb

Instance Attribute Summary

Attributes inherited from Base

#pattern

Instance Method Summary collapse

Methods inherited from Base

#and, #initialize, #or

Constructor Details

This class inherits a constructor from Filter::Matchers::Base

Instance Method Details

#===(other) ⇒ Object



4
5
6
# File 'lib/filter/matchers/boolean.rb', line 4

def ===(other)
  !!other == pattern
end