Module: Is::Property::Validators

Defined in:
lib/is/monkey/properties.rb

Defined Under Namespace

Classes: ALL, AND, ANY, NOT, ONE, OR

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.v_all(*args) ⇒ ALL

Parameters:

Returns:



377
378
379
# File 'lib/is/monkey/properties.rb', line 377

def v_all *args
  ALL.new *args
end

.v_and(*args) ⇒ AND

Parameters:

Returns:



359
360
361
# File 'lib/is/monkey/properties.rb', line 359

def v_and *args
  AND.new *args
end

.v_any(*args) ⇒ ANY

Parameters:

Returns:



371
372
373
# File 'lib/is/monkey/properties.rb', line 371

def v_any *args
  ANY.new *args
end

.v_not(arg) ⇒ NOT

Parameters:

  • arg (#===)

Returns:



365
366
367
# File 'lib/is/monkey/properties.rb', line 365

def v_not arg
  NOT.new arg
end

.v_one(*args) ⇒ ONE

Parameters:

Returns:



383
384
385
# File 'lib/is/monkey/properties.rb', line 383

def v_one *args
  ONE.new *args
end

.v_or(*args) ⇒ OR

Parameters:

Returns:



353
354
355
# File 'lib/is/monkey/properties.rb', line 353

def v_or *args
  OR.new *args
end

Instance Method Details

#v_all(*args) ⇒ ALL (private)

Parameters:

Returns:



377
378
379
# File 'lib/is/monkey/properties.rb', line 377

def v_all *args
  ALL.new *args
end

#v_and(*args) ⇒ AND (private)

Parameters:

Returns:



359
360
361
# File 'lib/is/monkey/properties.rb', line 359

def v_and *args
  AND.new *args
end

#v_any(*args) ⇒ ANY (private)

Parameters:

Returns:



371
372
373
# File 'lib/is/monkey/properties.rb', line 371

def v_any *args
  ANY.new *args
end

#v_not(arg) ⇒ NOT (private)

Parameters:

  • arg (#===)

Returns:



365
366
367
# File 'lib/is/monkey/properties.rb', line 365

def v_not arg
  NOT.new arg
end

#v_one(*args) ⇒ ONE (private)

Parameters:

Returns:



383
384
385
# File 'lib/is/monkey/properties.rb', line 383

def v_one *args
  ONE.new *args
end

#v_or(*args) ⇒ OR (private)

Parameters:

Returns:



353
354
355
# File 'lib/is/monkey/properties.rb', line 353

def v_or *args
  OR.new *args
end