Class: Ldaptic::Syntaxes::IA5String
- Defined in:
- lib/ldaptic/syntaxes.rb
Direct Known Subclasses
Constant Summary collapse
- PATTERN =
/\A[\x00-\x7f]*\z/
Constants inherited from Abstract
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 |