Class: ActiveLdap::Schema::Syntaxes::Base
- Inherits:
-
Object
- Object
- ActiveLdap::Schema::Syntaxes::Base
show all
- Includes:
- GetTextSupport
- Defined in:
- lib/active_ldap/schema/syntaxes.rb
Direct Known Subclasses
BitString, Boolean, CountryString, DirectoryString, DistinguishedName, GeneralizedTime, Integer, JPEG, NameAndOptionalUID, NumericString, OID, OtherMailbox, PostalAddress, PrintableString
Constant Summary
collapse
- SYNTAXES =
{}
- PRINTABLE_CHARACTER =
/[#{printable_character_source}]/
- UNPRINTABLE_CHARACTER =
/[^#{printable_character_source}]/
Instance Method Summary
collapse
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
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
|