Class: Is::Property::Validators::NOT

Inherits:
Object
  • Object
show all
Defined in:
lib/is/monkey/properties.rb

Instance Method Summary collapse

Constructor Details

#initialize(arg) ⇒ NOT

Returns a new instance of NOT.

Parameters:

  • arg (#===)


317
318
319
# File 'lib/is/monkey/properties.rb', line 317

def initialize arg
  @arg = arg
end

Instance Method Details

#===(value) ⇒ Boolean

Parameters:

Returns:

  • (Boolean)


323
324
325
# File 'lib/is/monkey/properties.rb', line 323

def === value
  !(@arg === value)
end