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



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

def v_all *args
  ALL.new *args
end

.v_and(*args) ⇒ AND



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

def v_and *args
  AND.new *args
end

.v_any(*args) ⇒ ANY



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

def v_any *args
  ANY.new *args
end

.v_not(arg) ⇒ NOT



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

def v_not arg
  NOT.new arg
end

.v_one(*args) ⇒ ONE



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

def v_one *args
  ONE.new *args
end

.v_or(*args) ⇒ OR



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)



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

def v_all *args
  ALL.new *args
end

#v_and(*args) ⇒ AND (private)



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

def v_and *args
  AND.new *args
end

#v_any(*args) ⇒ ANY (private)



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

def v_any *args
  ANY.new *args
end

#v_not(arg) ⇒ NOT (private)



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

def v_not arg
  NOT.new arg
end

#v_one(*args) ⇒ ONE (private)



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

def v_one *args
  ONE.new *args
end

#v_or(*args) ⇒ OR (private)



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

def v_or *args
  OR.new *args
end