Class: Ldaptic::Syntaxes::FacsimileTelephoneNumber

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

Direct Known Subclasses

TelexNumber

Constant Summary

Constants inherited from Abstract

Abstract::PRINTABLE

Instance Method Summary collapse

Methods inherited from PrintableString

#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



286
287
288
289
290
291
# File 'lib/ldaptic/syntaxes.rb', line 286

def error(string)
  return "can't be blank" if string.empty?
  unless string =~ /\A[#{PRINTABLE}][$#{PRINTABLE}]*\z/
    'contains invalid characters'
  end
end