fakeldap 0.0.0 → 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (81) hide show
  1. data/README.md +2 -0
  2. data/lib/fakeldap.rb +20 -0
  3. data/lib/fakeldap/version.rb +1 -1
  4. data/vendor/ruby-ldapserver/doc/LDAP.html +104 -0
  5. data/vendor/ruby-ldapserver/doc/LDAP/Abandon.html +112 -0
  6. data/vendor/ruby-ldapserver/doc/LDAP/Error.html +115 -0
  7. data/vendor/ruby-ldapserver/doc/LDAP/ResultError.html +241 -0
  8. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/AdminLimitExceeded.html +158 -0
  9. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/AffectsMultipleDSAs.html +158 -0
  10. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/AliasDereferencingProblem.html +158 -0
  11. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/AliasProblem.html +158 -0
  12. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/AttributeOrValueExists.html +158 -0
  13. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/AuthMethodNotSupported.html +158 -0
  14. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/Busy.html +158 -0
  15. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/CompareFalse.html +158 -0
  16. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/CompareTrue.html +158 -0
  17. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/ConfidentialityRequired.html +158 -0
  18. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/ConstraintViolation.html +158 -0
  19. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/EntryAlreadyExists.html +158 -0
  20. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/InappropriateAuthentication.html +158 -0
  21. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/InappropriateMatching.html +158 -0
  22. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/InsufficientAccessRights.html +158 -0
  23. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/InvalidAttributeSyntax.html +158 -0
  24. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/InvalidCredentials.html +158 -0
  25. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/InvalidDNSyntax.html +158 -0
  26. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/IsLeaf.html +158 -0
  27. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/LoopDetect.html +158 -0
  28. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/NamingViolation.html +158 -0
  29. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/NoSuchAttribute.html +158 -0
  30. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/NoSuchObject.html +158 -0
  31. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/NotAllowedOnNonLeaf.html +158 -0
  32. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/NotAllowedOnRDN.html +158 -0
  33. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/ObjectClassModsProhibited.html +158 -0
  34. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/ObjectClassViolation.html +158 -0
  35. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/OperationsError.html +158 -0
  36. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/Other.html +158 -0
  37. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/ProtocolError.html +158 -0
  38. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/Referral.html +158 -0
  39. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/SaslBindInProgress.html +158 -0
  40. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/SizeLimitExceeded.html +158 -0
  41. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/StrongAuthRequired.html +158 -0
  42. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/Success.html +158 -0
  43. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/TimeLimitExceeded.html +158 -0
  44. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/Unavailable.html +158 -0
  45. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/UnavailableCriticalExtension.html +158 -0
  46. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/UndefinedAttributeType.html +158 -0
  47. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/UnwillingToPerform.html +158 -0
  48. data/vendor/ruby-ldapserver/doc/LDAP/Server.html +1056 -0
  49. data/vendor/ruby-ldapserver/doc/LDAP/Server/Connection.html +1353 -0
  50. data/vendor/ruby-ldapserver/doc/LDAP/Server/Filter.html +634 -0
  51. data/vendor/ruby-ldapserver/doc/LDAP/Server/MatchingRule.html +1132 -0
  52. data/vendor/ruby-ldapserver/doc/LDAP/Server/MatchingRule/DefaultMatchingClass.html +219 -0
  53. data/vendor/ruby-ldapserver/doc/LDAP/Server/MatchingRule/Equality.html +170 -0
  54. data/vendor/ruby-ldapserver/doc/LDAP/Server/MatchingRule/IA5Downcase.html +143 -0
  55. data/vendor/ruby-ldapserver/doc/LDAP/Server/MatchingRule/IA5Trim.html +155 -0
  56. data/vendor/ruby-ldapserver/doc/LDAP/Server/MatchingRule/Integer.html +143 -0
  57. data/vendor/ruby-ldapserver/doc/LDAP/Server/MatchingRule/Ordering.html +212 -0
  58. data/vendor/ruby-ldapserver/doc/LDAP/Server/MatchingRule/StringDowncase.html +143 -0
  59. data/vendor/ruby-ldapserver/doc/LDAP/Server/MatchingRule/StringTrim.html +154 -0
  60. data/vendor/ruby-ldapserver/doc/LDAP/Server/MatchingRule/Substrings.html +177 -0
  61. data/vendor/ruby-ldapserver/doc/LDAP/Server/Operation.html +2994 -0
  62. data/vendor/ruby-ldapserver/doc/LDAP/Server/Schema.html +2024 -0
  63. data/vendor/ruby-ldapserver/doc/LDAP/Server/Schema/AttributeType.html +1462 -0
  64. data/vendor/ruby-ldapserver/doc/LDAP/Server/Schema/ObjectClass.html +1097 -0
  65. data/vendor/ruby-ldapserver/doc/LDAP/Server/Syntax.html +1254 -0
  66. data/vendor/ruby-ldapserver/doc/LDAP/Server/VERSION.html +134 -0
  67. data/vendor/ruby-ldapserver/doc/_index.html +662 -0
  68. data/vendor/ruby-ldapserver/doc/class_list.html +36 -0
  69. data/vendor/ruby-ldapserver/doc/css/common.css +1 -0
  70. data/vendor/ruby-ldapserver/doc/css/full_list.css +50 -0
  71. data/vendor/ruby-ldapserver/doc/css/style.css +303 -0
  72. data/vendor/ruby-ldapserver/doc/file.README.html +399 -0
  73. data/vendor/ruby-ldapserver/doc/file_list.html +38 -0
  74. data/vendor/ruby-ldapserver/doc/frames.html +13 -0
  75. data/vendor/ruby-ldapserver/doc/index.html +399 -0
  76. data/vendor/ruby-ldapserver/doc/js/app.js +204 -0
  77. data/vendor/ruby-ldapserver/doc/js/full_list.js +112 -0
  78. data/vendor/ruby-ldapserver/doc/js/jquery.js +154 -0
  79. data/vendor/ruby-ldapserver/doc/method_list.html +1571 -0
  80. data/vendor/ruby-ldapserver/doc/top-level-namespace.html +88 -0
  81. metadata +99 -10
@@ -0,0 +1,1254 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta name="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>Class: LDAP::Server::Syntax</title>
7
+ <link rel="stylesheet" href="../../css/style.css" type="text/css" media="screen" charset="utf-8" />
8
+ <link rel="stylesheet" href="../../css/common.css" type="text/css" media="screen" charset="utf-8" />
9
+
10
+ <script type="text/javascript" charset="utf-8">
11
+ relpath = '../..';
12
+ if (relpath != '') relpath += '/';
13
+ </script>
14
+ <script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
15
+ <script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
16
+
17
+ </head>
18
+ <body>
19
+ <script type="text/javascript" charset="utf-8">
20
+ if (window.top.frames.main) document.body.className = 'frames';
21
+ </script>
22
+
23
+ <div id="header">
24
+ <div id="menu">
25
+
26
+ <a href="../../_index.html">Index (S)</a> &raquo;
27
+ <span class='title'><span class='object_link'><a href="../../LDAP.html" title="LDAP (module)">LDAP</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Server.html" title="LDAP::Server (class)">Server</a></span></span>
28
+ &raquo;
29
+ <span class="title">Syntax</span>
30
+
31
+
32
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
33
+ </div>
34
+
35
+ <div id="search">
36
+ <a id="class_list_link" href="#">Class List</a>
37
+ <a id="method_list_link" href="#">Method List</a>
38
+ <a id ="file_list_link" href="#">File List</a>
39
+ </div>
40
+
41
+ <div class="clear"></div>
42
+ </div>
43
+
44
+ <iframe id="search_frame"></iframe>
45
+
46
+ <div id="content"><h1>Class: LDAP::Server::Syntax
47
+
48
+
49
+
50
+ </h1>
51
+
52
+ <dl class="box">
53
+
54
+ <dt class="r1">Inherits:</dt>
55
+ <dd class="r1">
56
+ <span class="inheritName">Object</span>
57
+
58
+ <ul class="fullTree">
59
+ <li>Object</li>
60
+
61
+ <li class="next">LDAP::Server::Syntax</li>
62
+
63
+ </ul>
64
+ <a href="#" class="inheritanceTree">show all</a>
65
+
66
+ </dd>
67
+
68
+
69
+
70
+
71
+
72
+
73
+
74
+
75
+
76
+ <dt class="r2 last">Defined in:</dt>
77
+ <dd class="r2 last">lib/ldap/server/syntax.rb<span class="defines">,<br />
78
+ lib/ldap/server/syntax.rb</span>
79
+ </dd>
80
+
81
+ </dl>
82
+ <div class="clear"></div>
83
+
84
+ <h2>Overview</h2><div class="docstring">
85
+ <div class="discussion">
86
+ <p>
87
+ A class which describes LDAP SyntaxDescriptions. For now there is a global
88
+ pool of Syntax objects (rather than each Schema object having its own set)
89
+ </p>
90
+
91
+
92
+ </div>
93
+ </div>
94
+ <div class="tags">
95
+
96
+ </div>
97
+ <h2>Constant Summary</h2>
98
+
99
+ <dl class="constants">
100
+
101
+ <dt id="KEYSTR-constant" class="">KEYSTR =
102
+ <div class="docstring">
103
+ <div class="discussion">
104
+ <p>
105
+ Shared constants for regexp-based syntax parsers
106
+ </p>
107
+
108
+
109
+ </div>
110
+ </div>
111
+ <div class="tags">
112
+
113
+ </div>
114
+ </dt>
115
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>[a-zA-Z][a-zA-Z0-9;-]*</span><span class='tstring_end'>&quot;</span></span></pre></dd>
116
+
117
+ <dt id="NUMERICOID-constant" class="">NUMERICOID =
118
+
119
+ </dt>
120
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>( \\d[\\d.]+\\d )</span><span class='tstring_end'>&quot;</span></span></pre></dd>
121
+
122
+ <dt id="WOID-constant" class="">WOID =
123
+
124
+ </dt>
125
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>\\s* ( </span><span class='embexpr_beg'>#{</span><span class='const'>KEYSTR</span><span class='rbrace'>}</span><span class='tstring_content'> | \\d[\\d.]+\\d ) \\s*</span><span class='tstring_end'>&quot;</span></span></pre></dd>
126
+
127
+ <dt id="OIDS-constant" class="">OIDS =
128
+
129
+ </dt>
130
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>( </span><span class='embexpr_beg'>#{</span><span class='id _WOID'>_WOID</span><span class='rbrace'>}</span><span class='tstring_content'> | \\s* \\( </span><span class='embexpr_beg'>#{</span><span class='id _WOID'>_WOID</span><span class='rbrace'>}</span><span class='tstring_content'> (?: \\$ </span><span class='embexpr_beg'>#{</span><span class='id _WOID'>_WOID</span><span class='rbrace'>}</span><span class='tstring_content'> )* \\) \\s* )</span><span class='tstring_end'>&quot;</span></span></pre></dd>
131
+
132
+ <dt id="QDESCRS-constant" class="">QDESCRS =
133
+
134
+ </dt>
135
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>( </span><span class='embexpr_beg'>#{</span><span class='id _QDESCR'>_QDESCR</span><span class='rbrace'>}</span><span class='tstring_content'> | \\s* \\( (?:</span><span class='embexpr_beg'>#{</span><span class='id _QDESCR'>_QDESCR</span><span class='rbrace'>}</span><span class='tstring_content'>)+ \\) \\s* )</span><span class='tstring_end'>&quot;</span></span></pre></dd>
136
+
137
+ <dt id="QDSTRING-constant" class="">QDSTRING =
138
+
139
+ </dt>
140
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>\\s* ' (.*?) ' \\s*</span><span class='tstring_end'>&quot;</span></span></pre></dd>
141
+
142
+ <dt id="NOIDLEN-constant" class="">NOIDLEN =
143
+
144
+ </dt>
145
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>(\\d[\\d.]+\\d) (?: \\{ (\\d+) \\} )?</span><span class='tstring_end'>&quot;</span></span></pre></dd>
146
+
147
+ <dt id="ATTRIBUTEUSAGE-constant" class="">ATTRIBUTEUSAGE =
148
+
149
+ </dt>
150
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>(userApplications|directoryOperation|distributedOperation|dSAOperation)</span><span class='tstring_end'>&quot;</span></span></pre></dd>
151
+
152
+ <dt id="AttributeTypeDescription-constant" class="">AttributeTypeDescription =
153
+ <div class="docstring">
154
+ <div class="discussion">
155
+ <p>
156
+ These are the &#8216;SHOULD&#8217; support syntaxes from RFC2252 section 6
157
+ </p>
158
+
159
+
160
+ </div>
161
+ </div>
162
+ <div class="tags">
163
+
164
+ </div>
165
+ </dt>
166
+ <dd><pre class="code"><span class='id add'>add</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>1.3.6.1.4.1.1466.115.121.1.3</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Attribute Type Description</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='symbol'>:re</span><span class='op'>=&gt;</span>
167
+ <span class='tstring'><span class='regexp_beg'>%r!</span><span class='tstring_content'> \A \s* \( \s*
168
+ </span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span><span class='const'>NUMERICOID</span><span class='rbrace'>}</span><span class='tstring_content'> \s*
169
+ </span><span class='tstring_content'> (?: NAME </span><span class='embexpr_beg'>#{</span><span class='const'>QDESCRS</span><span class='rbrace'>}</span><span class='tstring_content'> )?
170
+ </span><span class='tstring_content'> (?: DESC </span><span class='embexpr_beg'>#{</span><span class='const'>QDSTRING</span><span class='rbrace'>}</span><span class='tstring_content'> )?
171
+ ( OBSOLETE \s* )?
172
+ </span><span class='tstring_content'> (?: SUP </span><span class='embexpr_beg'>#{</span><span class='const'>WOID</span><span class='rbrace'>}</span><span class='tstring_content'> )?
173
+ </span><span class='tstring_content'> (?: EQUALITY </span><span class='embexpr_beg'>#{</span><span class='const'>WOID</span><span class='rbrace'>}</span><span class='tstring_content'> )?
174
+ </span><span class='tstring_content'> (?: ORDERING </span><span class='embexpr_beg'>#{</span><span class='const'>WOID</span><span class='rbrace'>}</span><span class='tstring_content'> )?
175
+ </span><span class='tstring_content'> (?: SUBSTR </span><span class='embexpr_beg'>#{</span><span class='const'>WOID</span><span class='rbrace'>}</span><span class='tstring_content'> )?
176
+ </span><span class='tstring_content'> (?: SYNTAX \s* </span><span class='embexpr_beg'>#{</span><span class='const'>NOIDLEN</span><span class='rbrace'>}</span><span class='tstring_content'> \s* )? # capture 2
177
+ ( SINGLE-VALUE \s* )?
178
+ ( COLLECTIVE \s* )?
179
+ ( NO-USER-MODIFICATION \s* )?
180
+ </span><span class='tstring_content'> (?: USAGE \s* </span><span class='embexpr_beg'>#{</span><span class='const'>ATTRIBUTEUSAGE</span><span class='rbrace'>}</span><span class='tstring_content'> )?
181
+ </span><span class='tstring_content'>\s* \) \s* \z </span><span class='regexp_end'>!xu</span></span><span class='rparen'>)</span></pre></dd>
182
+
183
+ <dt id="MatchingRuleDescription-constant" class="">MatchingRuleDescription =
184
+
185
+ </dt>
186
+ <dd><pre class="code"><span class='id add'>add</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>1.3.6.1.4.1.1466.115.121.1.30</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Matching Rule Description</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='symbol'>:re</span><span class='op'>=&gt;</span>
187
+ <span class='tstring'><span class='regexp_beg'>%r!</span><span class='tstring_content'> \A \s* \( \s*
188
+ </span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span><span class='const'>NUMERICOID</span><span class='rbrace'>}</span><span class='tstring_content'> \s*
189
+ </span><span class='tstring_content'> (?: NAME </span><span class='embexpr_beg'>#{</span><span class='const'>QDESCRS</span><span class='rbrace'>}</span><span class='tstring_content'> )?
190
+ </span><span class='tstring_content'> (?: DESC </span><span class='embexpr_beg'>#{</span><span class='const'>QDSTRING</span><span class='rbrace'>}</span><span class='tstring_content'> )?
191
+ ( OBSOLETE \s* )?
192
+ </span><span class='tstring_content'> SYNTAX \s* </span><span class='embexpr_beg'>#{</span><span class='const'>NUMERICOID</span><span class='rbrace'>}</span><span class='tstring_content'> \s*
193
+ </span><span class='tstring_content'>\s* \) \s* \z </span><span class='regexp_end'>!xu</span></span><span class='rparen'>)</span></pre></dd>
194
+
195
+ <dt id="MatchingRuleUseDescription-constant" class="">MatchingRuleUseDescription =
196
+
197
+ </dt>
198
+ <dd><pre class="code"><span class='id add'>add</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>1.3.6.1.4.1.1466.115.121.1.31</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Matching Rule Use Description</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='symbol'>:re</span><span class='op'>=&gt;</span>
199
+ <span class='tstring'><span class='regexp_beg'>%r!</span><span class='tstring_content'> \A \s* \( \s*
200
+ </span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span><span class='const'>NUMERICOID</span><span class='rbrace'>}</span><span class='tstring_content'> \s*
201
+ </span><span class='tstring_content'> (?: NAME </span><span class='embexpr_beg'>#{</span><span class='const'>QDESCRS</span><span class='rbrace'>}</span><span class='tstring_content'> )?
202
+ </span><span class='tstring_content'> (?: DESC </span><span class='embexpr_beg'>#{</span><span class='const'>QDSTRING</span><span class='rbrace'>}</span><span class='tstring_content'> )?
203
+ ( OBSOLETE \s* )?
204
+ </span><span class='tstring_content'> APPLIES \s* </span><span class='embexpr_beg'>#{</span><span class='const'>OIDS</span><span class='rbrace'>}</span><span class='tstring_content'> \s*
205
+ </span><span class='tstring_content'>\s* \) \s* \z </span><span class='regexp_end'>!xu</span></span><span class='rparen'>)</span></pre></dd>
206
+
207
+ <dt id="ObjectClassDescription-constant" class="">ObjectClassDescription =
208
+
209
+ </dt>
210
+ <dd><pre class="code"><span class='id add'>add</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>1.3.6.1.4.1.1466.115.121.1.37</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Object Class Description</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='symbol'>:re</span><span class='op'>=&gt;</span>
211
+ <span class='tstring'><span class='regexp_beg'>%r!</span><span class='tstring_content'> \A \s* \( \s*
212
+ </span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span><span class='const'>NUMERICOID</span><span class='rbrace'>}</span><span class='tstring_content'> \s*
213
+ </span><span class='tstring_content'> (?: NAME </span><span class='embexpr_beg'>#{</span><span class='const'>QDESCRS</span><span class='rbrace'>}</span><span class='tstring_content'> )?
214
+ </span><span class='tstring_content'> (?: DESC </span><span class='embexpr_beg'>#{</span><span class='const'>QDSTRING</span><span class='rbrace'>}</span><span class='tstring_content'> )?
215
+ ( OBSOLETE \s* )?
216
+ </span><span class='tstring_content'> (?: SUP </span><span class='embexpr_beg'>#{</span><span class='const'>OIDS</span><span class='rbrace'>}</span><span class='tstring_content'> )?
217
+ (?: ( ABSTRACT|STRUCTURAL|AUXILIARY ) \s* )?
218
+ </span><span class='tstring_content'> (?: MUST </span><span class='embexpr_beg'>#{</span><span class='const'>OIDS</span><span class='rbrace'>}</span><span class='tstring_content'> )?
219
+ </span><span class='tstring_content'> (?: MAY </span><span class='embexpr_beg'>#{</span><span class='const'>OIDS</span><span class='rbrace'>}</span><span class='tstring_content'> )?
220
+ </span><span class='tstring_content'>\s* \) \s* \z </span><span class='regexp_end'>!xu</span></span><span class='rparen'>)</span></pre></dd>
221
+
222
+ <dt id="LDAPSyntaxDescription-constant" class="">LDAPSyntaxDescription =
223
+
224
+ </dt>
225
+ <dd><pre class="code"><span class='id add'>add</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>1.3.6.1.4.1.1466.115.121.1.54</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>LDAP Syntax Description</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='symbol'>:re</span><span class='op'>=&gt;</span>
226
+ <span class='tstring'><span class='regexp_beg'>%r!</span><span class='tstring_content'> \A \s* \( \s*
227
+ </span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span><span class='const'>NUMERICOID</span><span class='rbrace'>}</span><span class='tstring_content'> \s*
228
+ </span><span class='tstring_content'> (?: DESC </span><span class='embexpr_beg'>#{</span><span class='const'>QDSTRING</span><span class='rbrace'>}</span><span class='tstring_content'> )?
229
+ (?: X-BINARY-TRANSFER-REQUIRED \s* ' (TRUE|FALSE) ' \s* )?
230
+ (?: X-NOT-HUMAN-READABLE \s* ' (TRUE|FALSE) ' \s* )?
231
+ </span><span class='tstring_content'>\s* \) \s* \z </span><span class='regexp_end'>!xu</span></span><span class='rparen'>)</span></pre></dd>
232
+
233
+ <dt id="syntaxes-classvariable" class="">@@syntaxes =
234
+
235
+ </dt>
236
+ <dd><pre class="code"><span class='lbrace'>{</span><span class='rbrace'>}</span></pre></dd>
237
+
238
+ </dl>
239
+
240
+
241
+
242
+ <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
243
+ <ul class="summary">
244
+
245
+ <li class="public ">
246
+ <span class="summary_signature">
247
+
248
+ <a href="#binary-instance_method" title="#binary (instance method)">- (Object) <strong>binary</strong> </a>
249
+
250
+
251
+
252
+ </span>
253
+
254
+
255
+ <span class="note title readonly">readonly</span>
256
+
257
+
258
+
259
+
260
+
261
+
262
+
263
+
264
+ <span class="summary_desc"><div class='inline'><p>
265
+ Returns the value of attribute binary.
266
+ </p>
267
+ </div></span>
268
+
269
+ </li>
270
+
271
+
272
+ <li class="public ">
273
+ <span class="summary_signature">
274
+
275
+ <a href="#desc-instance_method" title="#desc (instance method)">- (Object) <strong>desc</strong> </a>
276
+
277
+
278
+
279
+ </span>
280
+
281
+
282
+ <span class="note title readonly">readonly</span>
283
+
284
+
285
+
286
+
287
+
288
+
289
+
290
+
291
+ <span class="summary_desc"><div class='inline'><p>
292
+ Returns the value of attribute desc.
293
+ </p>
294
+ </div></span>
295
+
296
+ </li>
297
+
298
+
299
+ <li class="public ">
300
+ <span class="summary_signature">
301
+
302
+ <a href="#nhr-instance_method" title="#nhr (instance method)">- (Object) <strong>nhr</strong> </a>
303
+
304
+
305
+
306
+ </span>
307
+
308
+
309
+ <span class="note title readonly">readonly</span>
310
+
311
+
312
+
313
+
314
+
315
+
316
+
317
+
318
+ <span class="summary_desc"><div class='inline'><p>
319
+ Returns the value of attribute nhr.
320
+ </p>
321
+ </div></span>
322
+
323
+ </li>
324
+
325
+
326
+ <li class="public ">
327
+ <span class="summary_signature">
328
+
329
+ <a href="#oid-instance_method" title="#oid (instance method)">- (Object) <strong>oid</strong> </a>
330
+
331
+
332
+
333
+ </span>
334
+
335
+
336
+ <span class="note title readonly">readonly</span>
337
+
338
+
339
+
340
+
341
+
342
+
343
+
344
+
345
+ <span class="summary_desc"><div class='inline'><p>
346
+ Returns the value of attribute oid.
347
+ </p>
348
+ </div></span>
349
+
350
+ </li>
351
+
352
+
353
+ </ul>
354
+
355
+
356
+
357
+ <h2>
358
+ Class Method Summary
359
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
360
+ </h2>
361
+
362
+ <ul class="summary">
363
+
364
+ <li class="public ">
365
+ <span class="summary_signature">
366
+
367
+ <a href="#add-class_method" title="add (class method)">+ (Object) <strong>add</strong>(*args, &amp;blk) </a>
368
+
369
+
370
+
371
+ </span>
372
+
373
+
374
+
375
+
376
+
377
+
378
+
379
+
380
+ <span class="summary_desc"><div class='inline'><p>
381
+ Add a new syntax definition.
382
+ </p>
383
+ </div></span>
384
+
385
+ </li>
386
+
387
+
388
+ <li class="public ">
389
+ <span class="summary_signature">
390
+
391
+ <a href="#all_syntaxes-class_method" title="all_syntaxes (class method)">+ (Object) <strong>all_syntaxes</strong> </a>
392
+
393
+
394
+
395
+ </span>
396
+
397
+
398
+
399
+
400
+
401
+
402
+
403
+
404
+ <span class="summary_desc"><div class='inline'><p>
405
+ Return all known syntax objects.
406
+ </p>
407
+ </div></span>
408
+
409
+ </li>
410
+
411
+
412
+ <li class="public ">
413
+ <span class="summary_signature">
414
+
415
+ <a href="#find-class_method" title="find (class method)">+ (Object) <strong>find</strong>(oid) </a>
416
+
417
+
418
+
419
+ </span>
420
+
421
+
422
+
423
+
424
+
425
+
426
+
427
+
428
+ <span class="summary_desc"><div class='inline'><p>
429
+ Find a Syntax object given an oid.
430
+ </p>
431
+ </div></span>
432
+
433
+ </li>
434
+
435
+
436
+ <li class="public ">
437
+ <span class="summary_signature">
438
+
439
+ <a href="#from_def-class_method" title="from_def (class method)">+ (Object) <strong>from_def</strong>(str, &amp;blk) </a>
440
+
441
+
442
+
443
+ </span>
444
+
445
+
446
+
447
+
448
+
449
+
450
+
451
+
452
+ <span class="summary_desc"><div class='inline'><p>
453
+ Create a new Syntax object, given its description string.
454
+ </p>
455
+ </div></span>
456
+
457
+ </li>
458
+
459
+
460
+ </ul>
461
+
462
+ <h2>
463
+ Instance Method Summary
464
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
465
+ </h2>
466
+
467
+ <ul class="summary">
468
+
469
+ <li class="public ">
470
+ <span class="summary_signature">
471
+
472
+ <a href="#initialize-instance_method" title="#initialize (instance method)">- (Syntax) <strong>initialize</strong>(oid, desc = nil, opt = {}, &amp;blk) </a>
473
+
474
+
475
+
476
+ </span>
477
+
478
+ <span class="note title constructor">constructor</span>
479
+
480
+
481
+
482
+
483
+
484
+
485
+
486
+
487
+ <span class="summary_desc"><div class='inline'><p>
488
+ Create a new Syntax object.
489
+ </p>
490
+ </div></span>
491
+
492
+ </li>
493
+
494
+
495
+ <li class="public ">
496
+ <span class="summary_signature">
497
+
498
+ <a href="#match-instance_method" title="#match (instance method)">- (Object) <strong>match</strong>(val) </a>
499
+
500
+
501
+
502
+ </span>
503
+
504
+
505
+
506
+
507
+
508
+
509
+
510
+
511
+ <span class="summary_desc"><div class='inline'><p>
512
+ Return true or a MatchData object if the given value is allowed by this
513
+ syntax.
514
+ </p>
515
+ </div></span>
516
+
517
+ </li>
518
+
519
+
520
+ <li class="public ">
521
+ <span class="summary_signature">
522
+
523
+ <a href="#to_def-instance_method" title="#to_def (instance method)">- (Object) <strong>to_def</strong> </a>
524
+
525
+
526
+
527
+ </span>
528
+
529
+
530
+
531
+
532
+
533
+
534
+
535
+
536
+ <span class="summary_desc"><div class='inline'><p>
537
+ Convert this object to its description string.
538
+ </p>
539
+ </div></span>
540
+
541
+ </li>
542
+
543
+
544
+ <li class="public ">
545
+ <span class="summary_signature">
546
+
547
+ <a href="#to_s-instance_method" title="#to_s (instance method)">- (Object) <strong>to_s</strong> </a>
548
+
549
+
550
+
551
+ </span>
552
+
553
+
554
+
555
+
556
+
557
+
558
+
559
+
560
+ <span class="summary_desc"><div class='inline'></div></span>
561
+
562
+ </li>
563
+
564
+
565
+ <li class="public ">
566
+ <span class="summary_signature">
567
+
568
+ <a href="#value_from_s-instance_method" title="#value_from_s (instance method)">- (Object) <strong>value_from_s</strong>(val) </a>
569
+
570
+
571
+
572
+ </span>
573
+
574
+
575
+
576
+
577
+
578
+
579
+
580
+
581
+ <span class="summary_desc"><div class='inline'><p>
582
+ Convert a string value for this syntax into a Ruby-like value (not yet
583
+ used, but seemed like a good idea).
584
+ </p>
585
+ </div></span>
586
+
587
+ </li>
588
+
589
+
590
+ <li class="public ">
591
+ <span class="summary_signature">
592
+
593
+ <a href="#value_to_s-instance_method" title="#value_to_s (instance method)">- (Object) <strong>value_to_s</strong>(val) </a>
594
+
595
+
596
+
597
+ </span>
598
+
599
+
600
+
601
+
602
+
603
+
604
+
605
+
606
+ <span class="summary_desc"><div class='inline'><p>
607
+ Convert a value for this syntax into its canonical string representation
608
+ (not yet used, but seemed like a good idea).
609
+ </p>
610
+ </div></span>
611
+
612
+ </li>
613
+
614
+
615
+ </ul>
616
+
617
+
618
+ <div id="constructor_details" class="method_details_list">
619
+ <h2>Constructor Details</h2>
620
+
621
+ <div class="method_details first">
622
+ <p class="signature first" id="initialize-instance_method">
623
+
624
+ - (<tt><span class='object_link'><a href="" title="LDAP::Server::Syntax (class)">Syntax</a></span></tt>) <strong>initialize</strong>(oid, desc = nil, opt = {}, &amp;blk)
625
+
626
+
627
+
628
+ </p><div class="docstring">
629
+ <div class="discussion">
630
+ <p>
631
+ Create a new Syntax object
632
+ </p>
633
+
634
+
635
+ </div>
636
+ </div>
637
+ <div class="tags">
638
+
639
+ </div><table class="source_code">
640
+ <tr>
641
+ <td>
642
+ <pre class="lines">
643
+
644
+
645
+ 13
646
+ 14
647
+ 15
648
+ 16
649
+ 17
650
+ 18
651
+ 19
652
+ 20
653
+ 21</pre>
654
+ </td>
655
+ <td>
656
+ <pre class="code"><span class="info file"># File 'lib/ldap/server/syntax.rb', line 13</span>
657
+
658
+ <span class='kw'>def</span> <span class='id initialize'>initialize</span><span class='lparen'>(</span><span class='id oid'>oid</span><span class='comma'>,</span> <span class='id desc'>desc</span><span class='op'>=</span><span class='kw'>nil</span><span class='comma'>,</span> <span class='id opt'>opt</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='op'>&amp;</span><span class='id blk'>blk</span><span class='rparen'>)</span>
659
+ <span class='ivar'>@oid</span> <span class='op'>=</span> <span class='id oid'>oid</span>
660
+ <span class='ivar'>@desc</span> <span class='op'>=</span> <span class='id desc'>desc</span>
661
+ <span class='ivar'>@nhr</span> <span class='op'>=</span> <span class='id opt'>opt</span><span class='lbracket'>[</span><span class='symbol'>:nhr</span><span class='rbracket'>]</span> <span class='comment'># not human-readable?
662
+ </span> <span class='ivar'>@binary</span> <span class='op'>=</span> <span class='id opt'>opt</span><span class='lbracket'>[</span><span class='symbol'>:binary</span><span class='rbracket'>]</span> <span class='comment'># binary encoding forced?
663
+ </span> <span class='ivar'>@re</span> <span class='op'>=</span> <span class='id opt'>opt</span><span class='lbracket'>[</span><span class='symbol'>:re</span><span class='rbracket'>]</span> <span class='comment'># regular expression for parsing
664
+ </span> <span class='ivar'>@def</span> <span class='op'>=</span> <span class='kw'>nil</span>
665
+ <span class='id instance_eval'>instance_eval</span><span class='lparen'>(</span><span class='op'>&amp;</span><span class='id blk'>blk</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='id blk'>blk</span>
666
+ <span class='kw'>end</span></pre>
667
+ </td>
668
+ </tr>
669
+ </table>
670
+ </div>
671
+
672
+ </div>
673
+
674
+ <div id="instance_attr_details" class="attr_details">
675
+ <h2>Instance Attribute Details</h2>
676
+
677
+
678
+ <span id=""></span>
679
+ <span id="binary-instance_method"></span>
680
+ <div class="method_details first">
681
+ <p class="signature first" id="binary-instance_method">
682
+
683
+ - (<tt>Object</tt>) <strong>binary</strong> <span class="extras">(readonly)</span>
684
+
685
+
686
+
687
+ </p><div class="docstring">
688
+ <div class="discussion">
689
+ <p>
690
+ Returns the value of attribute binary
691
+ </p>
692
+
693
+
694
+ </div>
695
+ </div>
696
+ <div class="tags">
697
+
698
+ </div><table class="source_code">
699
+ <tr>
700
+ <td>
701
+ <pre class="lines">
702
+
703
+
704
+ 9
705
+ 10
706
+ 11</pre>
707
+ </td>
708
+ <td>
709
+ <pre class="code"><span class="info file"># File 'lib/ldap/server/syntax.rb', line 9</span>
710
+
711
+ <span class='kw'>def</span> <span class='id binary'>binary</span>
712
+ <span class='ivar'>@binary</span>
713
+ <span class='kw'>end</span></pre>
714
+ </td>
715
+ </tr>
716
+ </table>
717
+ </div>
718
+
719
+
720
+ <span id=""></span>
721
+ <span id="desc-instance_method"></span>
722
+ <div class="method_details ">
723
+ <p class="signature " id="desc-instance_method">
724
+
725
+ - (<tt>Object</tt>) <strong>desc</strong> <span class="extras">(readonly)</span>
726
+
727
+
728
+
729
+ </p><div class="docstring">
730
+ <div class="discussion">
731
+ <p>
732
+ Returns the value of attribute desc
733
+ </p>
734
+
735
+
736
+ </div>
737
+ </div>
738
+ <div class="tags">
739
+
740
+ </div><table class="source_code">
741
+ <tr>
742
+ <td>
743
+ <pre class="lines">
744
+
745
+
746
+ 9
747
+ 10
748
+ 11</pre>
749
+ </td>
750
+ <td>
751
+ <pre class="code"><span class="info file"># File 'lib/ldap/server/syntax.rb', line 9</span>
752
+
753
+ <span class='kw'>def</span> <span class='id desc'>desc</span>
754
+ <span class='ivar'>@desc</span>
755
+ <span class='kw'>end</span></pre>
756
+ </td>
757
+ </tr>
758
+ </table>
759
+ </div>
760
+
761
+
762
+ <span id=""></span>
763
+ <span id="nhr-instance_method"></span>
764
+ <div class="method_details ">
765
+ <p class="signature " id="nhr-instance_method">
766
+
767
+ - (<tt>Object</tt>) <strong>nhr</strong> <span class="extras">(readonly)</span>
768
+
769
+
770
+
771
+ </p><div class="docstring">
772
+ <div class="discussion">
773
+ <p>
774
+ Returns the value of attribute nhr
775
+ </p>
776
+
777
+
778
+ </div>
779
+ </div>
780
+ <div class="tags">
781
+
782
+ </div><table class="source_code">
783
+ <tr>
784
+ <td>
785
+ <pre class="lines">
786
+
787
+
788
+ 9
789
+ 10
790
+ 11</pre>
791
+ </td>
792
+ <td>
793
+ <pre class="code"><span class="info file"># File 'lib/ldap/server/syntax.rb', line 9</span>
794
+
795
+ <span class='kw'>def</span> <span class='id nhr'>nhr</span>
796
+ <span class='ivar'>@nhr</span>
797
+ <span class='kw'>end</span></pre>
798
+ </td>
799
+ </tr>
800
+ </table>
801
+ </div>
802
+
803
+
804
+ <span id=""></span>
805
+ <span id="oid-instance_method"></span>
806
+ <div class="method_details ">
807
+ <p class="signature " id="oid-instance_method">
808
+
809
+ - (<tt>Object</tt>) <strong>oid</strong> <span class="extras">(readonly)</span>
810
+
811
+
812
+
813
+ </p><div class="docstring">
814
+ <div class="discussion">
815
+ <p>
816
+ Returns the value of attribute oid
817
+ </p>
818
+
819
+
820
+ </div>
821
+ </div>
822
+ <div class="tags">
823
+
824
+ </div><table class="source_code">
825
+ <tr>
826
+ <td>
827
+ <pre class="lines">
828
+
829
+
830
+ 9
831
+ 10
832
+ 11</pre>
833
+ </td>
834
+ <td>
835
+ <pre class="code"><span class="info file"># File 'lib/ldap/server/syntax.rb', line 9</span>
836
+
837
+ <span class='kw'>def</span> <span class='id oid'>oid</span>
838
+ <span class='ivar'>@oid</span>
839
+ <span class='kw'>end</span></pre>
840
+ </td>
841
+ </tr>
842
+ </table>
843
+ </div>
844
+
845
+ </div>
846
+
847
+
848
+ <div id="class_method_details" class="method_details_list">
849
+ <h2>Class Method Details</h2>
850
+
851
+
852
+ <div class="method_details first">
853
+ <p class="signature first" id="add-class_method">
854
+
855
+ + (<tt>Object</tt>) <strong>add</strong>(*args, &amp;blk)
856
+
857
+
858
+
859
+ </p><div class="docstring">
860
+ <div class="discussion">
861
+ <p>
862
+ Add a new syntax definition
863
+ </p>
864
+
865
+
866
+ </div>
867
+ </div>
868
+ <div class="tags">
869
+
870
+ </div><table class="source_code">
871
+ <tr>
872
+ <td>
873
+ <pre class="lines">
874
+
875
+
876
+ 75
877
+ 76
878
+ 77
879
+ 78</pre>
880
+ </td>
881
+ <td>
882
+ <pre class="code"><span class="info file"># File 'lib/ldap/server/syntax.rb', line 75</span>
883
+
884
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id add'>add</span><span class='lparen'>(</span><span class='op'>*</span><span class='id args'>args</span><span class='comma'>,</span> <span class='op'>&amp;</span><span class='id blk'>blk</span><span class='rparen'>)</span>
885
+ <span class='id s'>s</span> <span class='op'>=</span> <span class='id new'>new</span><span class='lparen'>(</span><span class='op'>*</span><span class='id args'>args</span><span class='comma'>,</span> <span class='op'>&amp;</span><span class='id blk'>blk</span><span class='rparen'>)</span>
886
+ <span class='cvar'>@@syntaxes</span><span class='lbracket'>[</span><span class='id s'>s</span><span class='period'>.</span><span class='id oid'>oid</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id s'>s</span>
887
+ <span class='kw'>end</span></pre>
888
+ </td>
889
+ </tr>
890
+ </table>
891
+ </div>
892
+
893
+ <div class="method_details ">
894
+ <p class="signature " id="all_syntaxes-class_method">
895
+
896
+ + (<tt>Object</tt>) <strong>all_syntaxes</strong>
897
+
898
+
899
+
900
+ </p><div class="docstring">
901
+ <div class="discussion">
902
+ <p>
903
+ Return all known syntax objects
904
+ </p>
905
+
906
+
907
+ </div>
908
+ </div>
909
+ <div class="tags">
910
+
911
+ </div><table class="source_code">
912
+ <tr>
913
+ <td>
914
+ <pre class="lines">
915
+
916
+
917
+ 91
918
+ 92
919
+ 93</pre>
920
+ </td>
921
+ <td>
922
+ <pre class="code"><span class="info file"># File 'lib/ldap/server/syntax.rb', line 91</span>
923
+
924
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id all_syntaxes'>all_syntaxes</span>
925
+ <span class='cvar'>@@syntaxes</span><span class='period'>.</span><span class='id values'>values</span><span class='period'>.</span><span class='id uniq'>uniq</span>
926
+ <span class='kw'>end</span></pre>
927
+ </td>
928
+ </tr>
929
+ </table>
930
+ </div>
931
+
932
+ <div class="method_details ">
933
+ <p class="signature " id="find-class_method">
934
+
935
+ + (<tt>Object</tt>) <strong>find</strong>(oid)
936
+
937
+
938
+
939
+ </p><div class="docstring">
940
+ <div class="discussion">
941
+ <p>
942
+ Find a Syntax object given an oid. If not known, return a new empty Syntax
943
+ object associated with this oid.
944
+ </p>
945
+
946
+
947
+ </div>
948
+ </div>
949
+ <div class="tags">
950
+
951
+ </div><table class="source_code">
952
+ <tr>
953
+ <td>
954
+ <pre class="lines">
955
+
956
+
957
+ 83
958
+ 84
959
+ 85
960
+ 86
961
+ 87</pre>
962
+ </td>
963
+ <td>
964
+ <pre class="code"><span class="info file"># File 'lib/ldap/server/syntax.rb', line 83</span>
965
+
966
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id find'>find</span><span class='lparen'>(</span><span class='id oid'>oid</span><span class='rparen'>)</span>
967
+ <span class='kw'>return</span> <span class='id oid'>oid</span> <span class='kw'>if</span> <span class='id oid'>oid</span><span class='period'>.</span><span class='id nil?'>nil?</span> <span class='kw'>or</span> <span class='id oid'>oid</span><span class='period'>.</span><span class='id is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>LDAP</span><span class='op'>::</span><span class='const'>Server</span><span class='op'>::</span><span class='const'>Syntax</span><span class='rparen'>)</span>
968
+ <span class='kw'>return</span> <span class='cvar'>@@syntaxes</span><span class='lbracket'>[</span><span class='id oid'>oid</span><span class='rbracket'>]</span> <span class='kw'>if</span> <span class='cvar'>@@syntaxes</span><span class='lbracket'>[</span><span class='id oid'>oid</span><span class='rbracket'>]</span>
969
+ <span class='id add'>add</span><span class='lparen'>(</span><span class='id oid'>oid</span><span class='rparen'>)</span>
970
+ <span class='kw'>end</span></pre>
971
+ </td>
972
+ </tr>
973
+ </table>
974
+ </div>
975
+
976
+ <div class="method_details ">
977
+ <p class="signature " id="from_def-class_method">
978
+
979
+ + (<tt>Object</tt>) <strong>from_def</strong>(str, &amp;blk)
980
+
981
+
982
+
983
+ </p><div class="docstring">
984
+ <div class="discussion">
985
+ <p>
986
+ Create a new Syntax object, given its description string
987
+ </p>
988
+
989
+
990
+ </div>
991
+ </div>
992
+ <div class="tags">
993
+ <h3>Raises:</h3>
994
+ <ul class="raise">
995
+
996
+ <li>
997
+
998
+ <span class='type'>(<tt><span class='object_link'><a href="../ResultError/InvalidAttributeSyntax.html" title="LDAP::ResultError::InvalidAttributeSyntax (class)">LDAP::ResultError::InvalidAttributeSyntax</a></span></tt>)</span>
999
+
1000
+
1001
+
1002
+
1003
+ </li>
1004
+
1005
+ </ul>
1006
+
1007
+ </div><table class="source_code">
1008
+ <tr>
1009
+ <td>
1010
+ <pre class="lines">
1011
+
1012
+
1013
+ 29
1014
+ 30
1015
+ 31
1016
+ 32
1017
+ 33
1018
+ 34</pre>
1019
+ </td>
1020
+ <td>
1021
+ <pre class="code"><span class="info file"># File 'lib/ldap/server/syntax.rb', line 29</span>
1022
+
1023
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id from_def'>from_def</span><span class='lparen'>(</span><span class='id str'>str</span><span class='comma'>,</span> <span class='op'>&amp;</span><span class='id blk'>blk</span><span class='rparen'>)</span>
1024
+ <span class='id m'>m</span> <span class='op'>=</span> <span class='const'>LDAPSyntaxDescription</span><span class='period'>.</span><span class='id match'>match</span><span class='lparen'>(</span><span class='id str'>str</span><span class='rparen'>)</span>
1025
+ <span class='id raise'>raise</span> <span class='const'>LDAP</span><span class='op'>::</span><span class='const'>ResultError</span><span class='op'>::</span><span class='const'>InvalidAttributeSyntax</span><span class='comma'>,</span>
1026
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Bad SyntaxTypeDescription </span><span class='embexpr_beg'>#{</span><span class='id str'>str</span><span class='period'>.</span><span class='id inspect'>inspect</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span> <span class='kw'>unless</span> <span class='id m'>m</span>
1027
+ <span class='id new'>new</span><span class='lparen'>(</span><span class='id m'>m</span><span class='lbracket'>[</span><span class='int'>1</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id m'>m</span><span class='lbracket'>[</span><span class='int'>2</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='symbol'>:nhr</span><span class='op'>=&gt;</span><span class='lparen'>(</span><span class='id m'>m</span><span class='lbracket'>[</span><span class='int'>3</span><span class='rbracket'>]</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>TRUE</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='comma'>,</span> <span class='symbol'>:binary</span><span class='op'>=&gt;</span><span class='lparen'>(</span><span class='id m'>m</span><span class='lbracket'>[</span><span class='int'>4</span><span class='rbracket'>]</span> <span class='op'>==</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>TRUE</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='comma'>,</span> <span class='op'>&amp;</span><span class='id blk'>blk</span><span class='rparen'>)</span>
1028
+ <span class='kw'>end</span></pre>
1029
+ </td>
1030
+ </tr>
1031
+ </table>
1032
+ </div>
1033
+
1034
+ </div>
1035
+
1036
+ <div id="instance_method_details" class="method_details_list">
1037
+ <h2>Instance Method Details</h2>
1038
+
1039
+
1040
+ <div class="method_details first">
1041
+ <p class="signature first" id="match-instance_method">
1042
+
1043
+ - (<tt>Object</tt>) <strong>match</strong>(val)
1044
+
1045
+
1046
+
1047
+ </p><div class="docstring">
1048
+ <div class="discussion">
1049
+ <p>
1050
+ Return true or a MatchData object if the given value is allowed by this
1051
+ syntax
1052
+ </p>
1053
+
1054
+
1055
+ </div>
1056
+ </div>
1057
+ <div class="tags">
1058
+
1059
+ </div><table class="source_code">
1060
+ <tr>
1061
+ <td>
1062
+ <pre class="lines">
1063
+
1064
+
1065
+ 52
1066
+ 53
1067
+ 54
1068
+ 55</pre>
1069
+ </td>
1070
+ <td>
1071
+ <pre class="code"><span class="info file"># File 'lib/ldap/server/syntax.rb', line 52</span>
1072
+
1073
+ <span class='kw'>def</span> <span class='id match'>match</span><span class='lparen'>(</span><span class='id val'>val</span><span class='rparen'>)</span>
1074
+ <span class='kw'>return</span> <span class='kw'>true</span> <span class='kw'>if</span> <span class='ivar'>@re</span><span class='period'>.</span><span class='id nil?'>nil?</span>
1075
+ <span class='ivar'>@re</span><span class='period'>.</span><span class='id match'>match</span><span class='lparen'>(</span><span class='id value_to_s'>value_to_s</span><span class='lparen'>(</span><span class='id val'>val</span><span class='rparen'>)</span><span class='rparen'>)</span>
1076
+ <span class='kw'>end</span></pre>
1077
+ </td>
1078
+ </tr>
1079
+ </table>
1080
+ </div>
1081
+
1082
+ <div class="method_details ">
1083
+ <p class="signature " id="to_def-instance_method">
1084
+
1085
+ - (<tt>Object</tt>) <strong>to_def</strong>
1086
+
1087
+
1088
+
1089
+ </p><div class="docstring">
1090
+ <div class="discussion">
1091
+ <p>
1092
+ Convert this object to its description string
1093
+ </p>
1094
+
1095
+
1096
+ </div>
1097
+ </div>
1098
+ <div class="tags">
1099
+
1100
+ </div><table class="source_code">
1101
+ <tr>
1102
+ <td>
1103
+ <pre class="lines">
1104
+
1105
+
1106
+ 38
1107
+ 39
1108
+ 40
1109
+ 41
1110
+ 42
1111
+ 43
1112
+ 44
1113
+ 45
1114
+ 46
1115
+ 47</pre>
1116
+ </td>
1117
+ <td>
1118
+ <pre class="code"><span class="info file"># File 'lib/ldap/server/syntax.rb', line 38</span>
1119
+
1120
+ <span class='kw'>def</span> <span class='id to_def'>to_def</span>
1121
+ <span class='kw'>return</span> <span class='ivar'>@def</span> <span class='kw'>if</span> <span class='ivar'>@def</span>
1122
+ <span class='id ans'>ans</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>( </span><span class='embvar'>#</span><span class='ivar'>@oid</span><span class='tstring_content'> </span><span class='tstring_end'>&quot;</span></span>
1123
+ <span class='id ans'>ans</span> <span class='op'>&lt;&lt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>DESC '</span><span class='embvar'>#</span><span class='ivar'>@desc</span><span class='tstring_content'>' </span><span class='tstring_end'>&quot;</span></span> <span class='kw'>if</span> <span class='ivar'>@desc</span>
1124
+ <span class='comment'># These are OpenLDAP extensions
1125
+ </span> <span class='id ans'>ans</span> <span class='op'>&lt;&lt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>X-BINARY-TRANSFER-REQUIRED 'TRUE' </span><span class='tstring_end'>&quot;</span></span> <span class='kw'>if</span> <span class='ivar'>@binary</span>
1126
+ <span class='id ans'>ans</span> <span class='op'>&lt;&lt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>X-NOT-HUMAN-READABLE 'TRUE' </span><span class='tstring_end'>&quot;</span></span> <span class='kw'>if</span> <span class='ivar'>@nhr</span>
1127
+ <span class='id ans'>ans</span> <span class='op'>&lt;&lt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>)</span><span class='tstring_end'>&quot;</span></span>
1128
+ <span class='ivar'>@def</span> <span class='op'>=</span> <span class='id ans'>ans</span>
1129
+ <span class='kw'>end</span></pre>
1130
+ </td>
1131
+ </tr>
1132
+ </table>
1133
+ </div>
1134
+
1135
+ <div class="method_details ">
1136
+ <p class="signature " id="to_s-instance_method">
1137
+
1138
+ - (<tt>Object</tt>) <strong>to_s</strong>
1139
+
1140
+
1141
+
1142
+ </p><table class="source_code">
1143
+ <tr>
1144
+ <td>
1145
+ <pre class="lines">
1146
+
1147
+
1148
+ 23
1149
+ 24
1150
+ 25</pre>
1151
+ </td>
1152
+ <td>
1153
+ <pre class="code"><span class="info file"># File 'lib/ldap/server/syntax.rb', line 23</span>
1154
+
1155
+ <span class='kw'>def</span> <span class='id to_s'>to_s</span>
1156
+ <span class='ivar'>@oid</span>
1157
+ <span class='kw'>end</span></pre>
1158
+ </td>
1159
+ </tr>
1160
+ </table>
1161
+ </div>
1162
+
1163
+ <div class="method_details ">
1164
+ <p class="signature " id="value_from_s-instance_method">
1165
+
1166
+ - (<tt>Object</tt>) <strong>value_from_s</strong>(val)
1167
+
1168
+
1169
+
1170
+ </p><div class="docstring">
1171
+ <div class="discussion">
1172
+ <p>
1173
+ Convert a string value for this syntax into a Ruby-like value (not yet
1174
+ used, but seemed like a good idea)
1175
+ </p>
1176
+
1177
+
1178
+ </div>
1179
+ </div>
1180
+ <div class="tags">
1181
+
1182
+ </div><table class="source_code">
1183
+ <tr>
1184
+ <td>
1185
+ <pre class="lines">
1186
+
1187
+
1188
+ 67
1189
+ 68
1190
+ 69</pre>
1191
+ </td>
1192
+ <td>
1193
+ <pre class="code"><span class="info file"># File 'lib/ldap/server/syntax.rb', line 67</span>
1194
+
1195
+ <span class='kw'>def</span> <span class='id value_from_s'>value_from_s</span><span class='lparen'>(</span><span class='id val'>val</span><span class='rparen'>)</span>
1196
+ <span class='id val'>val</span>
1197
+ <span class='kw'>end</span></pre>
1198
+ </td>
1199
+ </tr>
1200
+ </table>
1201
+ </div>
1202
+
1203
+ <div class="method_details ">
1204
+ <p class="signature " id="value_to_s-instance_method">
1205
+
1206
+ - (<tt>Object</tt>) <strong>value_to_s</strong>(val)
1207
+
1208
+
1209
+
1210
+ </p><div class="docstring">
1211
+ <div class="discussion">
1212
+ <p>
1213
+ Convert a value for this syntax into its canonical string representation
1214
+ (not yet used, but seemed like a good idea)
1215
+ </p>
1216
+
1217
+
1218
+ </div>
1219
+ </div>
1220
+ <div class="tags">
1221
+
1222
+ </div><table class="source_code">
1223
+ <tr>
1224
+ <td>
1225
+ <pre class="lines">
1226
+
1227
+
1228
+ 60
1229
+ 61
1230
+ 62</pre>
1231
+ </td>
1232
+ <td>
1233
+ <pre class="code"><span class="info file"># File 'lib/ldap/server/syntax.rb', line 60</span>
1234
+
1235
+ <span class='kw'>def</span> <span class='id value_to_s'>value_to_s</span><span class='lparen'>(</span><span class='id val'>val</span><span class='rparen'>)</span>
1236
+ <span class='id val'>val</span><span class='period'>.</span><span class='id to_s'>to_s</span>
1237
+ <span class='kw'>end</span></pre>
1238
+ </td>
1239
+ </tr>
1240
+ </table>
1241
+ </div>
1242
+
1243
+ </div>
1244
+
1245
+ </div>
1246
+
1247
+ <div id="footer">
1248
+ Generated on Mon Sep 13 13:27:16 2010 by
1249
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1250
+ 0.6.0 (ruby-1.9.2).
1251
+ </div>
1252
+
1253
+ </body>
1254
+ </html>