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, OctetString, 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
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
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
|