Class: Case::Not
- Inherits:
-
Object
- Object
- Case::Not
- Defined in:
- lib/case.rb
Instance Method Summary collapse
- #===(obj) ⇒ Object
-
#initialize(pattern) ⇒ Not
constructor
A new instance of Not.
Constructor Details
#initialize(pattern) ⇒ Not
Returns a new instance of Not.
47 48 49 |
# File 'lib/case.rb', line 47 def initialize(pattern) @pattern = pattern end |
Instance Method Details
#===(obj) ⇒ Object
51 52 53 |
# File 'lib/case.rb', line 51 def ===(obj) !( @pattern === obj ) end |