Class: ActiveLdap::Schema::Syntaxes::Base — activeldap - ActiveLdap

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

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

Constant Summary

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

Instance Method Summary (collapse)

Instance Method Details

- (Boolean) binary?

Returns:



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

def binary?
  false
end

- (Object) normalize_value(value)



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

def normalize_value(value)
  value
end

- (Object) type_cast(value)



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

def type_cast(value)
  value
end

- (Boolean) valid?(value)

Returns:



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

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

- (Object) validate(value)



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

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