Module: LDAP::Server::MatchingRule::StringTrim

Defined in:
lib/ldap/server/match.rb

Overview

How is a DirectoryString different to an IA5String or a PrintableString?

Instance Method Summary collapse

Instance Method Details

#normalize(x) ⇒ Object



179
# File 'lib/ldap/server/match.rb', line 179

def normalize(x); x.gsub(/^\s*|\s*$/, '').gsub(/\s+/,' '); end