Class: ActiveLdap::Schema::Syntaxes::Base

Inherits:
Object
  • Object
show all
Includes:
GetTextSupport
Defined in:
lib/active_ldap/schema/syntaxes.rb

Constant Summary collapse

SYNTAXES =
{}
PRINTABLE_CHARACTER =
/[#{printable_character_source}]/
UNPRINTABLE_CHARACTER =
/[^#{printable_character_source}]/

Instance Method Summary collapse

Methods included from GetTextSupport

included

Instance Method Details

#normalize_value(value) ⇒ Object



35
36
37
# File 'lib/active_ldap/schema/syntaxes.rb', line 35

def normalize_value(value)
  value
end

#type_cast(value) ⇒ Object



23
24
25
# File 'lib/active_ldap/schema/syntaxes.rb', line 23

def type_cast(value)
  value
end

#valid?(value) ⇒ Boolean

Returns:



27
28
29
# File 'lib/active_ldap/schema/syntaxes.rb', line 27

def valid?(value)
  validate(value).nil?
end

#validate(value) ⇒ Object



31
32
33
# File 'lib/active_ldap/schema/syntaxes.rb', line 31

def validate(value)
  validate_normalized_value(normalize_value(value), value)
end