Module: RiderServer::Validate

Defined in:
lib/rider_server/validate/base.rb,
lib/rider_server/validate/hash.rb,
lib/rider_server/validate/array.rb,
lib/rider_server/validate/string.rb,
lib/rider_server/validate/symbol.rb,
lib/rider_server/validate/boolean.rb,
lib/rider_server/validate/integer.rb,
lib/rider_server/validate/predicates.rb

Defined Under Namespace

Modules: PredicateLogic Classes: Array, Base, Boolean, Hash, Integer, String, Symbol, ValidationError

Class Method Summary collapse

Class Method Details

.array(element_validator) ⇒ Object



28
29
30
# File 'lib/rider_server/validate/array.rb', line 28

def self.array(element_validator)
  Array.new(element_validator)
end

.boolObject



43
44
45
# File 'lib/rider_server/validate/boolean.rb', line 43

def self.bool
  Boolean.new
end

.hash(schema) ⇒ Object



28
29
30
# File 'lib/rider_server/validate/hash.rb', line 28

def self.hash(schema)
  Hash.new(schema)
end

.integerObject



52
53
54
# File 'lib/rider_server/validate/integer.rb', line 52

def self.integer
  Integer.new
end

.stringObject



56
57
58
# File 'lib/rider_server/validate/string.rb', line 56

def self.string
  Validate::String.new
end

.symbolObject



86
87
88
# File 'lib/rider_server/validate/symbol.rb', line 86

def self.symbol
  Symbol.new
end