Class: Ldaptic::Syntaxes::CountryString
- Inherits:
-
PrintableString
- Object
- Abstract
- PrintableString
- Ldaptic::Syntaxes::CountryString
- Defined in:
- lib/ldaptic/syntaxes.rb
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
270 271 272 |
# File 'lib/ldaptic/syntaxes.rb', line 270 def error(string) 'must be two letters' unless printable?(string) && string =~ /\A..\z/ end |