Class: Ldaptic::Syntaxes::FacsimileTelephoneNumber
- Inherits:
-
TelephoneNumber
- Object
- Abstract
- PrintableString
- TelephoneNumber
- Ldaptic::Syntaxes::FacsimileTelephoneNumber
- Defined in:
- lib/ldaptic/syntaxes.rb
Direct Known Subclasses
Constant Summary
Constants inherited from Abstract
Instance Method Summary collapse
Methods inherited from PrintableString
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 |