Class: Ldaptic::Syntaxes::IA5String

Inherits:
Abstract
  • Object
show all
Defined in:
lib/ldaptic/syntaxes.rb

Direct Known Subclasses

OtherMailbox

Constant Summary collapse

PATTERN =
/\A[\x00-\x7f]*\z/

Constants inherited from Abstract

Abstract::PRINTABLE

Instance Method Summary collapse

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



219
220
221
# File 'lib/ldaptic/syntaxes.rb', line 219

def error(string)
  'contains invalid characters' unless string =~ PATTERN
end

#parse(string) ⇒ Object



215
216
217
# File 'lib/ldaptic/syntaxes.rb', line 215

def parse(string)
  string
end