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

#binary?Boolean

Returns:



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

def binary?
  false
end

#normalize_value(value) ⇒ Object



39
40
41
# File 'lib/active_ldap/schema/syntaxes.rb', line 39

def normalize_value(value)
  value
end

#type_cast(value) ⇒ Object



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

def type_cast(value)
  value
end

#valid?(value) ⇒ Boolean

Returns:



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

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

#validate(value) ⇒ Object



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

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