Class Index [+]

Quicksearch

ActiveLdap::Schema::Syntaxes::DistinguishedName

Public Instance Methods

normalize_value(value) click to toggle source
     # File lib/active_ldap/schema/syntaxes.rb, line 137
137:         def normalize_value(value)
138:           if value.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:         def type_cast(value)
131:           return nil if value.nil?
132:           DN.parse(value)
133:         rescue DistinguishedNameInvalid
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:         def validate_normalized_value(value, original_value)
147:           DN.parse(value)
148:           nil
149:         rescue DistinguishedNameInvalid
150:           $!.message
151:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.