fakeldap 0.0.1 → 0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (114) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +7 -1
  3. data/lib/fakeldap.rb +133 -10
  4. data/lib/fakeldap/version.rb +1 -1
  5. metadata +50 -191
  6. data/vendor/ruby-ldapserver/COPYING +0 -27
  7. data/vendor/ruby-ldapserver/ChangeLog +0 -83
  8. data/vendor/ruby-ldapserver/Manifest.txt +0 -32
  9. data/vendor/ruby-ldapserver/README +0 -222
  10. data/vendor/ruby-ldapserver/Rakefile +0 -22
  11. data/vendor/ruby-ldapserver/doc/LDAP.html +0 -104
  12. data/vendor/ruby-ldapserver/doc/LDAP/Abandon.html +0 -112
  13. data/vendor/ruby-ldapserver/doc/LDAP/Error.html +0 -115
  14. data/vendor/ruby-ldapserver/doc/LDAP/ResultError.html +0 -241
  15. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/AdminLimitExceeded.html +0 -158
  16. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/AffectsMultipleDSAs.html +0 -158
  17. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/AliasDereferencingProblem.html +0 -158
  18. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/AliasProblem.html +0 -158
  19. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/AttributeOrValueExists.html +0 -158
  20. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/AuthMethodNotSupported.html +0 -158
  21. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/Busy.html +0 -158
  22. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/CompareFalse.html +0 -158
  23. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/CompareTrue.html +0 -158
  24. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/ConfidentialityRequired.html +0 -158
  25. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/ConstraintViolation.html +0 -158
  26. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/EntryAlreadyExists.html +0 -158
  27. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/InappropriateAuthentication.html +0 -158
  28. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/InappropriateMatching.html +0 -158
  29. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/InsufficientAccessRights.html +0 -158
  30. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/InvalidAttributeSyntax.html +0 -158
  31. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/InvalidCredentials.html +0 -158
  32. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/InvalidDNSyntax.html +0 -158
  33. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/IsLeaf.html +0 -158
  34. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/LoopDetect.html +0 -158
  35. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/NamingViolation.html +0 -158
  36. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/NoSuchAttribute.html +0 -158
  37. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/NoSuchObject.html +0 -158
  38. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/NotAllowedOnNonLeaf.html +0 -158
  39. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/NotAllowedOnRDN.html +0 -158
  40. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/ObjectClassModsProhibited.html +0 -158
  41. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/ObjectClassViolation.html +0 -158
  42. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/OperationsError.html +0 -158
  43. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/Other.html +0 -158
  44. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/ProtocolError.html +0 -158
  45. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/Referral.html +0 -158
  46. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/SaslBindInProgress.html +0 -158
  47. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/SizeLimitExceeded.html +0 -158
  48. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/StrongAuthRequired.html +0 -158
  49. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/Success.html +0 -158
  50. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/TimeLimitExceeded.html +0 -158
  51. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/Unavailable.html +0 -158
  52. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/UnavailableCriticalExtension.html +0 -158
  53. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/UndefinedAttributeType.html +0 -158
  54. data/vendor/ruby-ldapserver/doc/LDAP/ResultError/UnwillingToPerform.html +0 -158
  55. data/vendor/ruby-ldapserver/doc/LDAP/Server.html +0 -1056
  56. data/vendor/ruby-ldapserver/doc/LDAP/Server/Connection.html +0 -1353
  57. data/vendor/ruby-ldapserver/doc/LDAP/Server/Filter.html +0 -634
  58. data/vendor/ruby-ldapserver/doc/LDAP/Server/MatchingRule.html +0 -1132
  59. data/vendor/ruby-ldapserver/doc/LDAP/Server/MatchingRule/DefaultMatchingClass.html +0 -219
  60. data/vendor/ruby-ldapserver/doc/LDAP/Server/MatchingRule/Equality.html +0 -170
  61. data/vendor/ruby-ldapserver/doc/LDAP/Server/MatchingRule/IA5Downcase.html +0 -143
  62. data/vendor/ruby-ldapserver/doc/LDAP/Server/MatchingRule/IA5Trim.html +0 -155
  63. data/vendor/ruby-ldapserver/doc/LDAP/Server/MatchingRule/Integer.html +0 -143
  64. data/vendor/ruby-ldapserver/doc/LDAP/Server/MatchingRule/Ordering.html +0 -212
  65. data/vendor/ruby-ldapserver/doc/LDAP/Server/MatchingRule/StringDowncase.html +0 -143
  66. data/vendor/ruby-ldapserver/doc/LDAP/Server/MatchingRule/StringTrim.html +0 -154
  67. data/vendor/ruby-ldapserver/doc/LDAP/Server/MatchingRule/Substrings.html +0 -177
  68. data/vendor/ruby-ldapserver/doc/LDAP/Server/Operation.html +0 -2994
  69. data/vendor/ruby-ldapserver/doc/LDAP/Server/Schema.html +0 -2024
  70. data/vendor/ruby-ldapserver/doc/LDAP/Server/Schema/AttributeType.html +0 -1462
  71. data/vendor/ruby-ldapserver/doc/LDAP/Server/Schema/ObjectClass.html +0 -1097
  72. data/vendor/ruby-ldapserver/doc/LDAP/Server/Syntax.html +0 -1254
  73. data/vendor/ruby-ldapserver/doc/LDAP/Server/VERSION.html +0 -134
  74. data/vendor/ruby-ldapserver/doc/_index.html +0 -662
  75. data/vendor/ruby-ldapserver/doc/class_list.html +0 -36
  76. data/vendor/ruby-ldapserver/doc/css/common.css +0 -1
  77. data/vendor/ruby-ldapserver/doc/css/full_list.css +0 -50
  78. data/vendor/ruby-ldapserver/doc/css/style.css +0 -303
  79. data/vendor/ruby-ldapserver/doc/file.README.html +0 -399
  80. data/vendor/ruby-ldapserver/doc/file_list.html +0 -38
  81. data/vendor/ruby-ldapserver/doc/frames.html +0 -13
  82. data/vendor/ruby-ldapserver/doc/index.html +0 -399
  83. data/vendor/ruby-ldapserver/doc/js/app.js +0 -204
  84. data/vendor/ruby-ldapserver/doc/js/full_list.js +0 -112
  85. data/vendor/ruby-ldapserver/doc/js/jquery.js +0 -154
  86. data/vendor/ruby-ldapserver/doc/method_list.html +0 -1571
  87. data/vendor/ruby-ldapserver/doc/top-level-namespace.html +0 -88
  88. data/vendor/ruby-ldapserver/examples/README +0 -89
  89. data/vendor/ruby-ldapserver/examples/mkcert.rb +0 -31
  90. data/vendor/ruby-ldapserver/examples/rbslapd1.rb +0 -111
  91. data/vendor/ruby-ldapserver/examples/rbslapd2.rb +0 -161
  92. data/vendor/ruby-ldapserver/examples/rbslapd3.rb +0 -172
  93. data/vendor/ruby-ldapserver/examples/speedtest.rb +0 -37
  94. data/vendor/ruby-ldapserver/lib/ldap/server.rb +0 -4
  95. data/vendor/ruby-ldapserver/lib/ldap/server/connection.rb +0 -276
  96. data/vendor/ruby-ldapserver/lib/ldap/server/filter.rb +0 -223
  97. data/vendor/ruby-ldapserver/lib/ldap/server/match.rb +0 -283
  98. data/vendor/ruby-ldapserver/lib/ldap/server/operation.rb +0 -487
  99. data/vendor/ruby-ldapserver/lib/ldap/server/preforkserver.rb +0 -93
  100. data/vendor/ruby-ldapserver/lib/ldap/server/result.rb +0 -71
  101. data/vendor/ruby-ldapserver/lib/ldap/server/schema.rb +0 -592
  102. data/vendor/ruby-ldapserver/lib/ldap/server/server.rb +0 -89
  103. data/vendor/ruby-ldapserver/lib/ldap/server/syntax.rb +0 -235
  104. data/vendor/ruby-ldapserver/lib/ldap/server/tcpserver.rb +0 -91
  105. data/vendor/ruby-ldapserver/lib/ldap/server/util.rb +0 -88
  106. data/vendor/ruby-ldapserver/lib/ldap/server/version.rb +0 -11
  107. data/vendor/ruby-ldapserver/test/core.schema +0 -582
  108. data/vendor/ruby-ldapserver/test/encoding_test.rb +0 -279
  109. data/vendor/ruby-ldapserver/test/filter_test.rb +0 -107
  110. data/vendor/ruby-ldapserver/test/match_test.rb +0 -59
  111. data/vendor/ruby-ldapserver/test/schema_test.rb +0 -113
  112. data/vendor/ruby-ldapserver/test/syntax_test.rb +0 -40
  113. data/vendor/ruby-ldapserver/test/test_helper.rb +0 -2
  114. data/vendor/ruby-ldapserver/test/util_test.rb +0 -51
@@ -1,1132 +0,0 @@
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::MatchingRule</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 (M)</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">MatchingRule</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::MatchingRule
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::MatchingRule</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/match.rb<span class="defines">,<br />
78
- lib/ldap/server/match.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
- And now, here are some matching rules you can use (RFC2252 section 8)
88
- </p>
89
-
90
-
91
- </div>
92
- </div>
93
- <div class="tags">
94
-
95
- </div><h2>Defined Under Namespace</h2>
96
- <p class="children">
97
-
98
-
99
- <strong class="modules">Modules:</strong> <span class='object_link'><a href="MatchingRule/Equality.html" title="LDAP::Server::MatchingRule::Equality (module)">Equality</a></span>, <span class='object_link'><a href="MatchingRule/IA5Downcase.html" title="LDAP::Server::MatchingRule::IA5Downcase (module)">IA5Downcase</a></span>, <span class='object_link'><a href="MatchingRule/IA5Trim.html" title="LDAP::Server::MatchingRule::IA5Trim (module)">IA5Trim</a></span>, <span class='object_link'><a href="MatchingRule/Integer.html" title="LDAP::Server::MatchingRule::Integer (module)">Integer</a></span>, <span class='object_link'><a href="MatchingRule/Ordering.html" title="LDAP::Server::MatchingRule::Ordering (module)">Ordering</a></span>, <span class='object_link'><a href="MatchingRule/StringDowncase.html" title="LDAP::Server::MatchingRule::StringDowncase (module)">StringDowncase</a></span>, <span class='object_link'><a href="MatchingRule/StringTrim.html" title="LDAP::Server::MatchingRule::StringTrim (module)">StringTrim</a></span>, <span class='object_link'><a href="MatchingRule/Substrings.html" title="LDAP::Server::MatchingRule::Substrings (module)">Substrings</a></span>
100
-
101
-
102
-
103
- <strong class="classes">Classes:</strong> <span class='object_link'><a href="MatchingRule/DefaultMatchingClass.html" title="LDAP::Server::MatchingRule::DefaultMatchingClass (class)">DefaultMatchingClass</a></span>
104
-
105
-
106
- </p>
107
-
108
- <h2>Constant Summary</h2>
109
-
110
- <dl class="constants">
111
-
112
- <dt id="DefaultMatch-constant" class="">DefaultMatch =
113
-
114
- </dt>
115
- <dd><pre class="code"><span class='const'>DefaultMatchingClass</span><span class='period'>.</span><span class='id new'>new</span></pre></dd>
116
-
117
- <dt id="rules-classvariable" class="">@@rules =
118
- <div class="docstring">
119
- <div class="discussion">
120
- <p>
121
- oid / name / alias => object
122
- </p>
123
-
124
-
125
- </div>
126
- </div>
127
- <div class="tags">
128
-
129
- </div>
130
- </dt>
131
- <dd><pre class="code"><span class='lbrace'>{</span><span class='rbrace'>}</span></pre></dd>
132
-
133
- </dl>
134
-
135
-
136
-
137
- <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
138
- <ul class="summary">
139
-
140
- <li class="public ">
141
- <span class="summary_signature">
142
-
143
- <a href="#desc-instance_method" title="#desc (instance method)">- (Object) <strong>desc</strong> </a>
144
-
145
-
146
-
147
- </span>
148
-
149
-
150
- <span class="note title readonly">readonly</span>
151
-
152
-
153
-
154
-
155
-
156
-
157
-
158
-
159
- <span class="summary_desc"><div class='inline'><p>
160
- Returns the value of attribute desc.
161
- </p>
162
- </div></span>
163
-
164
- </li>
165
-
166
-
167
- <li class="public ">
168
- <span class="summary_signature">
169
-
170
- <a href="#names-instance_method" title="#names (instance method)">- (Object) <strong>names</strong> </a>
171
-
172
-
173
-
174
- </span>
175
-
176
-
177
- <span class="note title readonly">readonly</span>
178
-
179
-
180
-
181
-
182
-
183
-
184
-
185
-
186
- <span class="summary_desc"><div class='inline'><p>
187
- Returns the value of attribute names.
188
- </p>
189
- </div></span>
190
-
191
- </li>
192
-
193
-
194
- <li class="public ">
195
- <span class="summary_signature">
196
-
197
- <a href="#obsolete-instance_method" title="#obsolete (instance method)">- (Object) <strong>obsolete</strong> </a>
198
-
199
-
200
-
201
- </span>
202
-
203
-
204
- <span class="note title readonly">readonly</span>
205
-
206
-
207
-
208
-
209
-
210
-
211
-
212
-
213
- <span class="summary_desc"><div class='inline'><p>
214
- Returns the value of attribute obsolete.
215
- </p>
216
- </div></span>
217
-
218
- </li>
219
-
220
-
221
- <li class="public ">
222
- <span class="summary_signature">
223
-
224
- <a href="#oid-instance_method" title="#oid (instance method)">- (Object) <strong>oid</strong> </a>
225
-
226
-
227
-
228
- </span>
229
-
230
-
231
- <span class="note title readonly">readonly</span>
232
-
233
-
234
-
235
-
236
-
237
-
238
-
239
-
240
- <span class="summary_desc"><div class='inline'><p>
241
- Returns the value of attribute oid.
242
- </p>
243
- </div></span>
244
-
245
- </li>
246
-
247
-
248
- <li class="public ">
249
- <span class="summary_signature">
250
-
251
- <a href="#syntax-instance_method" title="#syntax (instance method)">- (Object) <strong>syntax</strong> </a>
252
-
253
-
254
-
255
- </span>
256
-
257
-
258
- <span class="note title readonly">readonly</span>
259
-
260
-
261
-
262
-
263
-
264
-
265
-
266
-
267
- <span class="summary_desc"><div class='inline'><p>
268
- Returns the value of attribute syntax.
269
- </p>
270
- </div></span>
271
-
272
- </li>
273
-
274
-
275
- </ul>
276
-
277
-
278
-
279
- <h2>
280
- Class Method Summary
281
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
282
- </h2>
283
-
284
- <ul class="summary">
285
-
286
- <li class="public ">
287
- <span class="summary_signature">
288
-
289
- <a href="#add-class_method" title="add (class method)">+ (Object) <strong>add</strong>(*args, &amp;blk) </a>
290
-
291
-
292
-
293
- </span>
294
-
295
-
296
-
297
-
298
-
299
-
300
-
301
-
302
- <span class="summary_desc"><div class='inline'><p>
303
- Add a new matching rule.
304
- </p>
305
- </div></span>
306
-
307
- </li>
308
-
309
-
310
- <li class="public ">
311
- <span class="summary_signature">
312
-
313
- <a href="#all_matching_rules-class_method" title="all_matching_rules (class method)">+ (Object) <strong>all_matching_rules</strong> </a>
314
-
315
-
316
-
317
- </span>
318
-
319
-
320
-
321
-
322
-
323
-
324
-
325
-
326
- <span class="summary_desc"><div class='inline'><p>
327
- Return all known matching rules.
328
- </p>
329
- </div></span>
330
-
331
- </li>
332
-
333
-
334
- <li class="public ">
335
- <span class="summary_signature">
336
-
337
- <a href="#find-class_method" title="find (class method)">+ (Object) <strong>find</strong>(x) </a>
338
-
339
-
340
-
341
- </span>
342
-
343
-
344
-
345
-
346
-
347
-
348
-
349
-
350
- <span class="summary_desc"><div class='inline'><p>
351
- Find a MatchingRule object given a name or oid, or return nil (? should we
352
- create one automatically, like Syntax).
353
- </p>
354
- </div></span>
355
-
356
- </li>
357
-
358
-
359
- <li class="public ">
360
- <span class="summary_signature">
361
-
362
- <a href="#from_def-class_method" title="from_def (class method)">+ (Object) <strong>from_def</strong>(str, &amp;blk) </a>
363
-
364
-
365
-
366
- </span>
367
-
368
-
369
-
370
-
371
-
372
-
373
-
374
-
375
- <span class="summary_desc"><div class='inline'><p>
376
- Create a new MatchingRule object, given its description string.
377
- </p>
378
- </div></span>
379
-
380
- </li>
381
-
382
-
383
- </ul>
384
-
385
- <h2>
386
- Instance Method Summary
387
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
388
- </h2>
389
-
390
- <ul class="summary">
391
-
392
- <li class="public ">
393
- <span class="summary_signature">
394
-
395
- <a href="#initialize-instance_method" title="#initialize (instance method)">- (MatchingRule) <strong>initialize</strong>(oid, names, syntax, desc = nil, obsolete = false, &amp;blk) </a>
396
-
397
-
398
-
399
- </span>
400
-
401
- <span class="note title constructor">constructor</span>
402
-
403
-
404
-
405
-
406
-
407
-
408
-
409
-
410
- <span class="summary_desc"><div class='inline'><p>
411
- Create a new MatchingRule object.
412
- </p>
413
- </div></span>
414
-
415
- </li>
416
-
417
-
418
- <li class="public ">
419
- <span class="summary_signature">
420
-
421
- <a href="#name-instance_method" title="#name (instance method)">- (Object) <strong>name</strong> </a>
422
-
423
-
424
-
425
- </span>
426
-
427
-
428
-
429
-
430
-
431
-
432
-
433
-
434
- <span class="summary_desc"><div class='inline'></div></span>
435
-
436
- </li>
437
-
438
-
439
- <li class="public ">
440
- <span class="summary_signature">
441
-
442
- <a href="#normalize-instance_method" title="#normalize (instance method)">- (Object) <strong>normalize</strong>(x) </a>
443
-
444
-
445
-
446
- </span>
447
-
448
-
449
-
450
-
451
-
452
-
453
-
454
-
455
- <span class="summary_desc"><div class='inline'></div></span>
456
-
457
- </li>
458
-
459
-
460
- <li class="public ">
461
- <span class="summary_signature">
462
-
463
- <a href="#to_def-instance_method" title="#to_def (instance method)">- (Object) <strong>to_def</strong> </a>
464
-
465
-
466
-
467
- </span>
468
-
469
-
470
-
471
-
472
-
473
-
474
-
475
-
476
- <span class="summary_desc"><div class='inline'></div></span>
477
-
478
- </li>
479
-
480
-
481
- <li class="public ">
482
- <span class="summary_signature">
483
-
484
- <a href="#to_s-instance_method" title="#to_s (instance method)">- (Object) <strong>to_s</strong> </a>
485
-
486
-
487
-
488
- </span>
489
-
490
-
491
-
492
-
493
-
494
-
495
-
496
-
497
- <span class="summary_desc"><div class='inline'></div></span>
498
-
499
- </li>
500
-
501
-
502
- </ul>
503
-
504
-
505
- <div id="constructor_details" class="method_details_list">
506
- <h2>Constructor Details</h2>
507
-
508
- <div class="method_details first">
509
- <p class="signature first" id="initialize-instance_method">
510
-
511
- - (<tt><span class='object_link'><a href="" title="LDAP::Server::MatchingRule (class)">MatchingRule</a></span></tt>) <strong>initialize</strong>(oid, names, syntax, desc = nil, obsolete = false, &amp;blk)
512
-
513
-
514
-
515
- </p><div class="docstring">
516
- <div class="discussion">
517
- <p>
518
- Create a new MatchingRule object
519
- </p>
520
-
521
-
522
- </div>
523
- </div>
524
- <div class="tags">
525
-
526
- </div><table class="source_code">
527
- <tr>
528
- <td>
529
- <pre class="lines">
530
-
531
-
532
- 16
533
- 17
534
- 18
535
- 19
536
- 20
537
- 21
538
- 22
539
- 23
540
- 24
541
- 25
542
- 26</pre>
543
- </td>
544
- <td>
545
- <pre class="code"><span class="info file"># File 'lib/ldap/server/match.rb', line 16</span>
546
-
547
- <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 names'>names</span><span class='comma'>,</span> <span class='id syntax'>syntax</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 obsolete'>obsolete</span><span class='op'>=</span><span class='kw'>false</span><span class='comma'>,</span> <span class='op'>&amp;</span><span class='id blk'>blk</span><span class='rparen'>)</span>
548
- <span class='ivar'>@oid</span> <span class='op'>=</span> <span class='id oid'>oid</span>
549
- <span class='ivar'>@names</span> <span class='op'>=</span> <span class='id names'>names</span>
550
- <span class='ivar'>@names</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='ivar'>@names</span><span class='rbracket'>]</span> <span class='kw'>unless</span> <span class='ivar'>@names</span><span class='period'>.</span><span class='id is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>Array</span><span class='rparen'>)</span>
551
- <span class='ivar'>@desc</span> <span class='op'>=</span> <span class='id desc'>desc</span>
552
- <span class='ivar'>@obsolete</span> <span class='op'>=</span> <span class='id obsolete'>obsolete</span>
553
- <span class='ivar'>@syntax</span> <span class='op'>=</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='period'>.</span><span class='id find'>find</span><span class='lparen'>(</span><span class='id syntax'>syntax</span><span class='rparen'>)</span> <span class='comment'># creates new obj if reqd
554
- </span> <span class='ivar'>@def</span> <span class='op'>=</span> <span class='kw'>nil</span>
555
- <span class='comment'># initialization hook
556
- </span> <span class='kw'>self</span><span class='period'>.</span><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>
557
- <span class='kw'>end</span></pre>
558
- </td>
559
- </tr>
560
- </table>
561
- </div>
562
-
563
- </div>
564
-
565
- <div id="instance_attr_details" class="attr_details">
566
- <h2>Instance Attribute Details</h2>
567
-
568
-
569
- <span id=""></span>
570
- <span id="desc-instance_method"></span>
571
- <div class="method_details first">
572
- <p class="signature first" id="desc-instance_method">
573
-
574
- - (<tt>Object</tt>) <strong>desc</strong> <span class="extras">(readonly)</span>
575
-
576
-
577
-
578
- </p><div class="docstring">
579
- <div class="discussion">
580
- <p>
581
- Returns the value of attribute desc
582
- </p>
583
-
584
-
585
- </div>
586
- </div>
587
- <div class="tags">
588
-
589
- </div><table class="source_code">
590
- <tr>
591
- <td>
592
- <pre class="lines">
593
-
594
-
595
- 12
596
- 13
597
- 14</pre>
598
- </td>
599
- <td>
600
- <pre class="code"><span class="info file"># File 'lib/ldap/server/match.rb', line 12</span>
601
-
602
- <span class='kw'>def</span> <span class='id desc'>desc</span>
603
- <span class='ivar'>@desc</span>
604
- <span class='kw'>end</span></pre>
605
- </td>
606
- </tr>
607
- </table>
608
- </div>
609
-
610
-
611
- <span id=""></span>
612
- <span id="names-instance_method"></span>
613
- <div class="method_details ">
614
- <p class="signature " id="names-instance_method">
615
-
616
- - (<tt>Object</tt>) <strong>names</strong> <span class="extras">(readonly)</span>
617
-
618
-
619
-
620
- </p><div class="docstring">
621
- <div class="discussion">
622
- <p>
623
- Returns the value of attribute names
624
- </p>
625
-
626
-
627
- </div>
628
- </div>
629
- <div class="tags">
630
-
631
- </div><table class="source_code">
632
- <tr>
633
- <td>
634
- <pre class="lines">
635
-
636
-
637
- 12
638
- 13
639
- 14</pre>
640
- </td>
641
- <td>
642
- <pre class="code"><span class="info file"># File 'lib/ldap/server/match.rb', line 12</span>
643
-
644
- <span class='kw'>def</span> <span class='id names'>names</span>
645
- <span class='ivar'>@names</span>
646
- <span class='kw'>end</span></pre>
647
- </td>
648
- </tr>
649
- </table>
650
- </div>
651
-
652
-
653
- <span id=""></span>
654
- <span id="obsolete-instance_method"></span>
655
- <div class="method_details ">
656
- <p class="signature " id="obsolete-instance_method">
657
-
658
- - (<tt>Object</tt>) <strong>obsolete</strong> <span class="extras">(readonly)</span>
659
-
660
-
661
-
662
- </p><div class="docstring">
663
- <div class="discussion">
664
- <p>
665
- Returns the value of attribute obsolete
666
- </p>
667
-
668
-
669
- </div>
670
- </div>
671
- <div class="tags">
672
-
673
- </div><table class="source_code">
674
- <tr>
675
- <td>
676
- <pre class="lines">
677
-
678
-
679
- 12
680
- 13
681
- 14</pre>
682
- </td>
683
- <td>
684
- <pre class="code"><span class="info file"># File 'lib/ldap/server/match.rb', line 12</span>
685
-
686
- <span class='kw'>def</span> <span class='id obsolete'>obsolete</span>
687
- <span class='ivar'>@obsolete</span>
688
- <span class='kw'>end</span></pre>
689
- </td>
690
- </tr>
691
- </table>
692
- </div>
693
-
694
-
695
- <span id=""></span>
696
- <span id="oid-instance_method"></span>
697
- <div class="method_details ">
698
- <p class="signature " id="oid-instance_method">
699
-
700
- - (<tt>Object</tt>) <strong>oid</strong> <span class="extras">(readonly)</span>
701
-
702
-
703
-
704
- </p><div class="docstring">
705
- <div class="discussion">
706
- <p>
707
- Returns the value of attribute oid
708
- </p>
709
-
710
-
711
- </div>
712
- </div>
713
- <div class="tags">
714
-
715
- </div><table class="source_code">
716
- <tr>
717
- <td>
718
- <pre class="lines">
719
-
720
-
721
- 12
722
- 13
723
- 14</pre>
724
- </td>
725
- <td>
726
- <pre class="code"><span class="info file"># File 'lib/ldap/server/match.rb', line 12</span>
727
-
728
- <span class='kw'>def</span> <span class='id oid'>oid</span>
729
- <span class='ivar'>@oid</span>
730
- <span class='kw'>end</span></pre>
731
- </td>
732
- </tr>
733
- </table>
734
- </div>
735
-
736
-
737
- <span id=""></span>
738
- <span id="syntax-instance_method"></span>
739
- <div class="method_details ">
740
- <p class="signature " id="syntax-instance_method">
741
-
742
- - (<tt>Object</tt>) <strong>syntax</strong> <span class="extras">(readonly)</span>
743
-
744
-
745
-
746
- </p><div class="docstring">
747
- <div class="discussion">
748
- <p>
749
- Returns the value of attribute syntax
750
- </p>
751
-
752
-
753
- </div>
754
- </div>
755
- <div class="tags">
756
-
757
- </div><table class="source_code">
758
- <tr>
759
- <td>
760
- <pre class="lines">
761
-
762
-
763
- 12
764
- 13
765
- 14</pre>
766
- </td>
767
- <td>
768
- <pre class="code"><span class="info file"># File 'lib/ldap/server/match.rb', line 12</span>
769
-
770
- <span class='kw'>def</span> <span class='id syntax'>syntax</span>
771
- <span class='ivar'>@syntax</span>
772
- <span class='kw'>end</span></pre>
773
- </td>
774
- </tr>
775
- </table>
776
- </div>
777
-
778
- </div>
779
-
780
-
781
- <div id="class_method_details" class="method_details_list">
782
- <h2>Class Method Details</h2>
783
-
784
-
785
- <div class="method_details first">
786
- <p class="signature first" id="add-class_method">
787
-
788
- + (<tt>Object</tt>) <strong>add</strong>(*args, &amp;blk)
789
-
790
-
791
-
792
- </p><div class="docstring">
793
- <div class="discussion">
794
- <p>
795
- Add a new matching rule
796
- </p>
797
-
798
-
799
- </div>
800
- </div>
801
- <div class="tags">
802
-
803
- </div><table class="source_code">
804
- <tr>
805
- <td>
806
- <pre class="lines">
807
-
808
-
809
- 72
810
- 73
811
- 74
812
- 75
813
- 76
814
- 77
815
- 78
816
- 79</pre>
817
- </td>
818
- <td>
819
- <pre class="code"><span class="info file"># File 'lib/ldap/server/match.rb', line 72</span>
820
-
821
- <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>
822
- <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>
823
- <span class='cvar'>@@rules</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>
824
- <span class='kw'>return</span> <span class='kw'>if</span> <span class='id s'>s</span><span class='period'>.</span><span class='id names'>names</span><span class='period'>.</span><span class='id nil?'>nil?</span>
825
- <span class='id s'>s</span><span class='period'>.</span><span class='id names'>names</span><span class='period'>.</span><span class='id each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id n'>n</span><span class='op'>|</span>
826
- <span class='cvar'>@@rules</span><span class='lbracket'>[</span><span class='id n'>n</span><span class='period'>.</span><span class='id downcase'>downcase</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id s'>s</span>
827
- <span class='kw'>end</span>
828
- <span class='kw'>end</span></pre>
829
- </td>
830
- </tr>
831
- </table>
832
- </div>
833
-
834
- <div class="method_details ">
835
- <p class="signature " id="all_matching_rules-class_method">
836
-
837
- + (<tt>Object</tt>) <strong>all_matching_rules</strong>
838
-
839
-
840
-
841
- </p><div class="docstring">
842
- <div class="discussion">
843
- <p>
844
- Return all known matching rules
845
- </p>
846
-
847
-
848
- </div>
849
- </div>
850
- <div class="tags">
851
-
852
- </div><table class="source_code">
853
- <tr>
854
- <td>
855
- <pre class="lines">
856
-
857
-
858
- 91
859
- 92
860
- 93</pre>
861
- </td>
862
- <td>
863
- <pre class="code"><span class="info file"># File 'lib/ldap/server/match.rb', line 91</span>
864
-
865
- <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id all_matching_rules'>all_matching_rules</span>
866
- <span class='cvar'>@@rules</span><span class='period'>.</span><span class='id values'>values</span><span class='period'>.</span><span class='id uniq'>uniq</span>
867
- <span class='kw'>end</span></pre>
868
- </td>
869
- </tr>
870
- </table>
871
- </div>
872
-
873
- <div class="method_details ">
874
- <p class="signature " id="find-class_method">
875
-
876
- + (<tt>Object</tt>) <strong>find</strong>(x)
877
-
878
-
879
-
880
- </p><div class="docstring">
881
- <div class="discussion">
882
- <p>
883
- Find a MatchingRule object given a name or oid, or return nil (? should we
884
- create one automatically, like Syntax)
885
- </p>
886
-
887
-
888
- </div>
889
- </div>
890
- <div class="tags">
891
-
892
- </div><table class="source_code">
893
- <tr>
894
- <td>
895
- <pre class="lines">
896
-
897
-
898
- 84
899
- 85
900
- 86
901
- 87</pre>
902
- </td>
903
- <td>
904
- <pre class="code"><span class="info file"># File 'lib/ldap/server/match.rb', line 84</span>
905
-
906
- <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 x'>x</span><span class='rparen'>)</span>
907
- <span class='kw'>return</span> <span class='id x'>x</span> <span class='kw'>if</span> <span class='id x'>x</span><span class='period'>.</span><span class='id nil?'>nil?</span> <span class='kw'>or</span> <span class='id x'>x</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'>MatchingRule</span><span class='rparen'>)</span>
908
- <span class='cvar'>@@rules</span><span class='lbracket'>[</span><span class='id x'>x</span><span class='period'>.</span><span class='id downcase'>downcase</span><span class='rbracket'>]</span>
909
- <span class='kw'>end</span></pre>
910
- </td>
911
- </tr>
912
- </table>
913
- </div>
914
-
915
- <div class="method_details ">
916
- <p class="signature " id="from_def-class_method">
917
-
918
- + (<tt>Object</tt>) <strong>from_def</strong>(str, &amp;blk)
919
-
920
-
921
-
922
- </p><div class="docstring">
923
- <div class="discussion">
924
- <p>
925
- Create a new MatchingRule object, given its description string
926
- </p>
927
-
928
-
929
- </div>
930
- </div>
931
- <div class="tags">
932
- <h3>Raises:</h3>
933
- <ul class="raise">
934
-
935
- <li>
936
-
937
- <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>
938
-
939
-
940
-
941
-
942
- </li>
943
-
944
- </ul>
945
-
946
- </div><table class="source_code">
947
- <tr>
948
- <td>
949
- <pre class="lines">
950
-
951
-
952
- 42
953
- 43
954
- 44
955
- 45
956
- 46
957
- 47</pre>
958
- </td>
959
- <td>
960
- <pre class="code"><span class="info file"># File 'lib/ldap/server/match.rb', line 42</span>
961
-
962
- <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>
963
- <span class='id m'>m</span> <span class='op'>=</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='op'>::</span><span class='const'>MatchingRuleDescription</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>
964
- <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>
965
- <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Bad MatchingRuleDescription </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>
966
- <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='period'>.</span><span class='id scan'>scan</span><span class='lparen'>(</span><span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>'(.*?)'</span><span class='regexp_end'>/</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id flatten'>flatten</span><span class='comma'>,</span> <span class='id m'>m</span><span class='lbracket'>[</span><span class='int'>5</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id m'>m</span><span class='lbracket'>[</span><span class='int'>3</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id m'>m</span><span class='lbracket'>[</span><span class='int'>4</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='op'>&amp;</span><span class='id blk'>blk</span><span class='rparen'>)</span>
967
- <span class='kw'>end</span></pre>
968
- </td>
969
- </tr>
970
- </table>
971
- </div>
972
-
973
- </div>
974
-
975
- <div id="instance_method_details" class="method_details_list">
976
- <h2>Instance Method Details</h2>
977
-
978
-
979
- <div class="method_details first">
980
- <p class="signature first" id="name-instance_method">
981
-
982
- - (<tt>Object</tt>) <strong>name</strong>
983
-
984
-
985
-
986
- </p><table class="source_code">
987
- <tr>
988
- <td>
989
- <pre class="lines">
990
-
991
-
992
- 28
993
- 29
994
- 30</pre>
995
- </td>
996
- <td>
997
- <pre class="code"><span class="info file"># File 'lib/ldap/server/match.rb', line 28</span>
998
-
999
- <span class='kw'>def</span> <span class='id name'>name</span>
1000
- <span class='lparen'>(</span><span class='ivar'>@names</span> <span class='op'>&amp;&amp;</span> <span class='id names'>names</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='rparen'>)</span> <span class='op'>||</span> <span class='ivar'>@oid</span>
1001
- <span class='kw'>end</span></pre>
1002
- </td>
1003
- </tr>
1004
- </table>
1005
- </div>
1006
-
1007
- <div class="method_details ">
1008
- <p class="signature " id="normalize-instance_method">
1009
-
1010
- - (<tt>Object</tt>) <strong>normalize</strong>(x)
1011
-
1012
-
1013
-
1014
- </p><table class="source_code">
1015
- <tr>
1016
- <td>
1017
- <pre class="lines">
1018
-
1019
-
1020
- 36
1021
- 37
1022
- 38</pre>
1023
- </td>
1024
- <td>
1025
- <pre class="code"><span class="info file"># File 'lib/ldap/server/match.rb', line 36</span>
1026
-
1027
- <span class='kw'>def</span> <span class='id normalize'>normalize</span><span class='lparen'>(</span><span class='id x'>x</span><span class='rparen'>)</span>
1028
- <span class='id x'>x</span>
1029
- <span class='kw'>end</span></pre>
1030
- </td>
1031
- </tr>
1032
- </table>
1033
- </div>
1034
-
1035
- <div class="method_details ">
1036
- <p class="signature " id="to_def-instance_method">
1037
-
1038
- - (<tt>Object</tt>) <strong>to_def</strong>
1039
-
1040
-
1041
-
1042
- </p><table class="source_code">
1043
- <tr>
1044
- <td>
1045
- <pre class="lines">
1046
-
1047
-
1048
- 49
1049
- 50
1050
- 51
1051
- 52
1052
- 53
1053
- 54
1054
- 55
1055
- 56
1056
- 57
1057
- 58
1058
- 59
1059
- 60
1060
- 61
1061
- 62
1062
- 63
1063
- 64
1064
- 65
1065
- 66</pre>
1066
- </td>
1067
- <td>
1068
- <pre class="code"><span class="info file"># File 'lib/ldap/server/match.rb', line 49</span>
1069
-
1070
- <span class='kw'>def</span> <span class='id to_def'>to_def</span>
1071
- <span class='kw'>return</span> <span class='ivar'>@def</span> <span class='kw'>if</span> <span class='ivar'>@def</span>
1072
- <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='embexpr_beg'>#{</span><span class='ivar'>@oid</span><span class='rbrace'>}</span><span class='tstring_content'> </span><span class='tstring_end'>&quot;</span></span>
1073
- <span class='kw'>if</span> <span class='id names'>names</span><span class='period'>.</span><span class='id nil?'>nil?</span> <span class='kw'>or</span> <span class='ivar'>@names</span><span class='period'>.</span><span class='id empty?'>empty?</span>
1074
- <span class='comment'># nothing
1075
- </span> <span class='kw'>elsif</span> <span class='ivar'>@names</span><span class='period'>.</span><span class='id size'>size</span> <span class='op'>==</span> <span class='int'>1</span>
1076
- <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'>NAME '</span><span class='embexpr_beg'>#{</span><span class='ivar'>@names</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='rbrace'>}</span><span class='tstring_content'>' </span><span class='tstring_end'>&quot;</span></span>
1077
- <span class='kw'>else</span>
1078
- <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'>NAME ( </span><span class='tstring_end'>&quot;</span></span>
1079
- <span class='ivar'>@names</span><span class='period'>.</span><span class='id each'>each</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id n'>n</span><span class='op'>|</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'>'</span><span class='embexpr_beg'>#{</span><span class='id n'>n</span><span class='rbrace'>}</span><span class='tstring_content'>' </span><span class='tstring_end'>&quot;</span></span> <span class='rbrace'>}</span>
1080
- <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>
1081
- <span class='kw'>end</span>
1082
- <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>
1083
- <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'>OBSOLETE </span><span class='tstring_end'>&quot;</span></span> <span class='kw'>if</span> <span class='ivar'>@obsolete</span>
1084
- <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'>SYNTAX </span><span class='embvar'>#</span><span class='ivar'>@syntax</span><span class='tstring_content'> </span><span class='tstring_end'>&quot;</span></span> <span class='kw'>if</span> <span class='ivar'>@syntax</span>
1085
- <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>
1086
- <span class='ivar'>@def</span> <span class='op'>=</span> <span class='id ans'>ans</span>
1087
- <span class='kw'>end</span></pre>
1088
- </td>
1089
- </tr>
1090
- </table>
1091
- </div>
1092
-
1093
- <div class="method_details ">
1094
- <p class="signature " id="to_s-instance_method">
1095
-
1096
- - (<tt>Object</tt>) <strong>to_s</strong>
1097
-
1098
-
1099
-
1100
- </p><table class="source_code">
1101
- <tr>
1102
- <td>
1103
- <pre class="lines">
1104
-
1105
-
1106
- 32
1107
- 33
1108
- 34</pre>
1109
- </td>
1110
- <td>
1111
- <pre class="code"><span class="info file"># File 'lib/ldap/server/match.rb', line 32</span>
1112
-
1113
- <span class='kw'>def</span> <span class='id to_s'>to_s</span>
1114
- <span class='lparen'>(</span><span class='ivar'>@names</span> <span class='op'>&amp;&amp;</span> <span class='id names'>names</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='rparen'>)</span> <span class='op'>||</span> <span class='ivar'>@oid</span>
1115
- <span class='kw'>end</span></pre>
1116
- </td>
1117
- </tr>
1118
- </table>
1119
- </div>
1120
-
1121
- </div>
1122
-
1123
- </div>
1124
-
1125
- <div id="footer">
1126
- Generated on Mon Sep 13 13:27:16 2010 by
1127
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1128
- 0.6.0 (ruby-1.9.2).
1129
- </div>
1130
-
1131
- </body>
1132
- </html>