# File lib/active_ldap/schema/syntaxes.rb, line 137
137: defnormalize_value(value)
138: ifvalue.is_a?(DN)
139: value.to_s
140: else
141: value
142: end
143: end
type_cast(value)click to toggle source
# File lib/active_ldap/schema/syntaxes.rb, line 130
130: deftype_cast(value)
131: returnnilifvalue.nil?
132: DN.parse(value)
133: rescueDistinguishedNameInvalid
134: value
135: end
Private Instance Methods
validate_normalized_value(value, original_value)click to toggle source
# File lib/active_ldap/schema/syntaxes.rb, line 146
146: defvalidate_normalized_value(value, original_value)
147: DN.parse(value)
148: nil
149: rescueDistinguishedNameInvalid
150: $!.message
151: end