Class: Ldaptic::Syntaxes::CountryString

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

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



270
271
272
# File 'lib/ldaptic/syntaxes.rb', line 270

def error(string)
  'must be two letters' unless printable?(string) && string =~ /\A..\z/
end