Class: Ldaptic::Syntaxes::Abstract
- Inherits:
-
Object
- Object
- Ldaptic::Syntaxes::Abstract
- Defined in:
- lib/ldaptic/syntaxes.rb
Direct Known Subclasses
BitString, Boolean, DN, DirectoryString, GeneralizedTime, IA5String, INTEGER, LDAPSyntaxDescription, OctetString, PrintableString
Constant Summary collapse
- PRINTABLE =
RFC2522 Allows single but not double quotes, and slapd implements the opposite of that. We’ll allow both for now.
"A-Za-z0-9'\"()+,./:? =-"
Class Method Summary collapse
Instance Method Summary collapse
- #error(value) ⇒ Object
- #format(value) ⇒ Object
-
#initialize(object = nil) ⇒ Abstract
constructor
The
object
argument refers back to the LDAP entry from which the attribute in question came. - #printable?(string) ⇒ Boolean
Constructor Details
#initialize(object = nil) ⇒ Abstract
The object
argument refers back to the LDAP entry from which the attribute in question came. This is currently used only for the DN syntax, to allow dn.find
to work.
102 103 104 |
# File 'lib/ldaptic/syntaxes.rb', line 102 def initialize(object = nil) @object = object end |
Class Method Details
.format(object) ⇒ Object
120 121 122 |
# File 'lib/ldaptic/syntaxes.rb', line 120 def self.format(object) new.format(object) end |
.parse(string) ⇒ Object
124 125 126 |
# File 'lib/ldaptic/syntaxes.rb', line 124 def self.parse(string) new.parse(string) end |