Class: Ldaptic::Syntaxes::PrintableString
- Defined in:
- lib/ldaptic/syntaxes.rb
Direct Known Subclasses
Constant Summary
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
263 264 265 266 |
# File 'lib/ldaptic/syntaxes.rb', line 263 def error(string) return "can't be blank" if string.empty? 'contains invalid characters' unless printable?(string) end |
#parse(string) ⇒ Object
259 260 261 |
# File 'lib/ldaptic/syntaxes.rb', line 259 def parse(string) string end |