Class: Seh::EventType::Not

Inherits:
EventType
  • Object
show all
Defined in:
lib/seh/event_type.rb

Overview

Or

Instance Method Summary collapse

Constructor Details

#initialize(type) ⇒ Not

Returns a new instance of Not.



38
39
40
41
# File 'lib/seh/event_type.rb', line 38

def initialize type
  type = EventType.new type unless type.kind_of? EventType
  @type = type
end

Instance Method Details

#match(types) ⇒ Object



43
44
45
# File 'lib/seh/event_type.rb', line 43

def match types
  ! @type.match types
end