Class: Is::Property::Validators::NOT
- Defined in:
- lib/is/monkey/properties.rb
Instance Method Summary collapse
- #===(value) ⇒ Boolean
-
#initialize(arg) ⇒ NOT
constructor
A new instance of NOT.
Constructor Details
#initialize(arg) ⇒ NOT
Returns a new instance of NOT.
317 318 319 |
# File 'lib/is/monkey/properties.rb', line 317 def initialize arg @arg = arg end |
Instance Method Details
#===(value) ⇒ Boolean
323 324 325 |
# File 'lib/is/monkey/properties.rb', line 323 def === value !(@arg === value) end |