Class: Case::Not

Inherits:
Object
  • Object
show all
Defined in:
lib/case.rb

Instance Method Summary collapse

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