Class: Ldaptic::Syntaxes::PostalAddress

Inherits:
DirectoryString show all
Defined in:
lib/ldaptic/syntaxes.rb

Constant Summary

Constants inherited from Abstract

Abstract::PRINTABLE

Instance Method Summary collapse

Methods inherited from DirectoryString

#parse

Methods inherited from Abstract

format, #format, #initialize, parse, #printable?

Constructor Details

This class inherits a constructor from Ldaptic::Syntaxes::Abstract

Instance Method Details

#error(string) ⇒ Object



162
163
164
165
166
167
168
# File 'lib/ldaptic/syntaxes.rb', line 162

def error(string)
  if string.gsub(/\\[\\$]/, '').include?('\\')
    "contains an invalid escape"
  else
    super
  end
end