stub_requests 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (93) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +5 -2
  3. data/.reek.yml +1 -0
  4. data/.rubocop.yml +33 -35
  5. data/.simplecov +14 -8
  6. data/.yardopts +1 -1
  7. data/CHANGELOG.md +4 -1
  8. data/README.md +19 -11
  9. data/Rakefile +1 -3
  10. data/bin/update_docs.sh +16 -0
  11. data/gemfiles/webmock_2.3.gemfile.lock +1 -1
  12. data/gemfiles/webmock_3.5.gemfile.lock +1 -1
  13. data/gemfiles/webmock_develop.gemfile.lock +1 -1
  14. data/lib/rspec/subject_as_lambda.rb +138 -0
  15. data/lib/stub_requests/api.rb +42 -8
  16. data/lib/stub_requests/argument_validation.rb +17 -6
  17. data/lib/stub_requests/configuration.rb +21 -0
  18. data/lib/stub_requests/core_ext/all.rb +4 -0
  19. data/lib/stub_requests/core_ext/array/extract_options.rb +32 -0
  20. data/lib/stub_requests/core_ext/class/attribute.rb +61 -0
  21. data/lib/stub_requests/core_ext/kernel/singleton_class.rb +12 -0
  22. data/lib/stub_requests/core_ext/module/redefine_method.rb +44 -0
  23. data/lib/stub_requests/core_ext/object/blank.rb +99 -155
  24. data/lib/stub_requests/endpoint.rb +28 -30
  25. data/lib/stub_requests/endpoint_registry.rb +18 -16
  26. data/lib/stub_requests/exceptions.rb +84 -0
  27. data/lib/stub_requests/hash_util.rb +2 -0
  28. data/lib/stub_requests/metrics/endpoint_stat.rb +97 -0
  29. data/lib/stub_requests/metrics/registry.rb +132 -0
  30. data/lib/stub_requests/metrics/stub_stat.rb +80 -0
  31. data/lib/stub_requests/metrics.rb +32 -0
  32. data/lib/stub_requests/property/validator.rb +136 -0
  33. data/lib/stub_requests/property.rb +99 -0
  34. data/lib/stub_requests/service.rb +12 -53
  35. data/lib/stub_requests/service_registry.rb +8 -9
  36. data/lib/stub_requests/stub_requests.rb +23 -51
  37. data/lib/stub_requests/uri/builder.rb +5 -1
  38. data/lib/stub_requests/uri/scheme.rb +3 -1
  39. data/lib/stub_requests/uri/suffix.rb +5 -0
  40. data/lib/stub_requests/uri/validator.rb +3 -1
  41. data/lib/stub_requests/uri.rb +34 -0
  42. data/lib/stub_requests/version.rb +1 -1
  43. data/lib/stub_requests/webmock/builder.rb +116 -0
  44. data/lib/stub_requests/webmock/stub_registry_extension.rb +46 -0
  45. data/lib/stub_requests.rb +21 -3
  46. metadata +19 -49
  47. data/docs/.gitkeep +0 -0
  48. data/docs/Array.html +0 -137
  49. data/docs/FalseClass.html +0 -232
  50. data/docs/Hash.html +0 -137
  51. data/docs/NilClass.html +0 -232
  52. data/docs/Numeric.html +0 -233
  53. data/docs/Object.html +0 -396
  54. data/docs/String.html +0 -298
  55. data/docs/StubRequests/API.html +0 -651
  56. data/docs/StubRequests/ArgumentValidation.html +0 -309
  57. data/docs/StubRequests/Endpoint.html +0 -1187
  58. data/docs/StubRequests/EndpointNotFound.html +0 -157
  59. data/docs/StubRequests/EndpointRegistry.html +0 -1527
  60. data/docs/StubRequests/Error.html +0 -153
  61. data/docs/StubRequests/HashUtil.html +0 -304
  62. data/docs/StubRequests/InvalidType.html +0 -252
  63. data/docs/StubRequests/InvalidUri.html +0 -252
  64. data/docs/StubRequests/Service.html +0 -1307
  65. data/docs/StubRequests/ServiceHaveEndpoints.html +0 -244
  66. data/docs/StubRequests/ServiceNotFound.html +0 -252
  67. data/docs/StubRequests/ServiceRegistry.html +0 -1031
  68. data/docs/StubRequests/URI/Builder.html +0 -1194
  69. data/docs/StubRequests/URI/Scheme.html +0 -315
  70. data/docs/StubRequests/URI/Suffix.html +0 -315
  71. data/docs/StubRequests/URI/Validator.html +0 -770
  72. data/docs/StubRequests/URI.html +0 -144
  73. data/docs/StubRequests/UriSegmentMismatch.html +0 -157
  74. data/docs/StubRequests/WebMockBuilder.html +0 -887
  75. data/docs/StubRequests.html +0 -452
  76. data/docs/Time.html +0 -232
  77. data/docs/TrueClass.html +0 -232
  78. data/docs/_config.yml +0 -1
  79. data/docs/_index.html +0 -391
  80. data/docs/class_list.html +0 -51
  81. data/docs/css/common.css +0 -1
  82. data/docs/css/full_list.css +0 -58
  83. data/docs/css/style.css +0 -496
  84. data/docs/file.README.html +0 -225
  85. data/docs/file_list.html +0 -56
  86. data/docs/frames.html +0 -17
  87. data/docs/index.html +0 -225
  88. data/docs/js/app.js +0 -292
  89. data/docs/js/full_list.js +0 -216
  90. data/docs/js/jquery.js +0 -4
  91. data/docs/method_list.html +0 -707
  92. data/docs/top-level-namespace.html +0 -112
  93. data/lib/stub_requests/webmock_builder.rb +0 -108
@@ -1,452 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>
7
- Module: StubRequests
8
-
9
- &mdash; Documentation by YARD 0.9.18
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
14
-
15
- <link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
16
-
17
- <script type="text/javascript" charset="utf-8">
18
- pathId = "StubRequests";
19
- relpath = '';
20
- </script>
21
-
22
-
23
- <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
24
-
25
- <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
26
-
27
-
28
- </head>
29
- <body>
30
- <div class="nav_wrap">
31
- <iframe id="nav" src="class_list.html?1"></iframe>
32
- <div id="resizer"></div>
33
- </div>
34
-
35
- <div id="main" tabindex="-1">
36
- <div id="header">
37
- <div id="menu">
38
-
39
- <a href="_index.html">Index (S)</a> &raquo;
40
-
41
-
42
- <span class="title">StubRequests</span>
43
-
44
- </div>
45
-
46
- <div id="search">
47
-
48
- <a class="full_list_link" id="class_list_link"
49
- href="class_list.html">
50
-
51
- <svg width="24" height="24">
52
- <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
- <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
- <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
- </svg>
56
- </a>
57
-
58
- </div>
59
- <div class="clear"></div>
60
- </div>
61
-
62
- <div id="content"><h1>Module: StubRequests
63
-
64
-
65
-
66
- </h1>
67
- <div class="box_info">
68
-
69
-
70
-
71
-
72
- <dl>
73
- <dt>Extended by:</dt>
74
- <dd><span class='object_link'><a href="" title="StubRequests (module)">StubRequests</a></span>, UriFor</dd>
75
- </dl>
76
-
77
-
78
-
79
- <dl>
80
- <dt>Includes:</dt>
81
- <dd><span class='object_link'><a href="StubRequests/API.html" title="StubRequests::API (module)">API</a></span>, UriFor</dd>
82
- </dl>
83
-
84
-
85
-
86
-
87
- <dl>
88
- <dt>Included in:</dt>
89
- <dd><span class='object_link'><a href="" title="StubRequests (module)">StubRequests</a></span></dd>
90
- </dl>
91
-
92
-
93
-
94
- <dl>
95
- <dt>Defined in:</dt>
96
- <dd>lib/stub_requests/api.rb<span class="defines">,<br />
97
- lib/stub_requests/service.rb,<br /> lib/stub_requests/version.rb,<br /> lib/stub_requests/endpoint.rb,<br /> lib/stub_requests/hash_util.rb,<br /> lib/stub_requests/uri/scheme.rb,<br /> lib/stub_requests/uri/suffix.rb,<br /> lib/stub_requests/uri/builder.rb,<br /> lib/stub_requests/stub_requests.rb,<br /> lib/stub_requests/uri/validator.rb,<br /> lib/stub_requests/webmock_builder.rb,<br /> lib/stub_requests/service_registry.rb,<br /> lib/stub_requests/endpoint_registry.rb,<br /> lib/stub_requests/argument_validation.rb</span>
98
- </dd>
99
- </dl>
100
-
101
- </div>
102
-
103
- <h2>Overview</h2><div class="docstring">
104
- <div class="discussion">
105
- <p>Abstraction over WebMock to reduce duplication</p>
106
-
107
-
108
- </div>
109
- </div>
110
- <div class="tags">
111
-
112
- <p class="tag_title">Author:</p>
113
- <ul class="author">
114
-
115
- <li>
116
-
117
-
118
-
119
-
120
-
121
- <div class='inline'><p>Mikael Henriksson <a href="mailto:mikael@zoolutions.se">mikael@zoolutions.se</a></p>
122
- </div>
123
-
124
- </li>
125
-
126
- </ul>
127
- <p class="tag_title">Since:</p>
128
- <ul class="since">
129
-
130
- <li>
131
-
132
-
133
-
134
-
135
-
136
- <div class='inline'><p>0.1.0</p>
137
- </div>
138
-
139
- </li>
140
-
141
- </ul>
142
-
143
- </div><h2>Defined Under Namespace</h2>
144
- <p class="children">
145
-
146
-
147
- <strong class="modules">Modules:</strong> <span class='object_link'><a href="StubRequests/API.html" title="StubRequests::API (module)">API</a></span>, <span class='object_link'><a href="StubRequests/ArgumentValidation.html" title="StubRequests::ArgumentValidation (module)">ArgumentValidation</a></span>, <span class='object_link'><a href="StubRequests/HashUtil.html" title="StubRequests::HashUtil (module)">HashUtil</a></span>, <span class='object_link'><a href="StubRequests/URI.html" title="StubRequests::URI (module)">URI</a></span>
148
-
149
-
150
-
151
- <strong class="classes">Classes:</strong> <span class='object_link'><a href="StubRequests/Endpoint.html" title="StubRequests::Endpoint (class)">Endpoint</a></span>, <span class='object_link'><a href="StubRequests/EndpointNotFound.html" title="StubRequests::EndpointNotFound (class)">EndpointNotFound</a></span>, <span class='object_link'><a href="StubRequests/EndpointRegistry.html" title="StubRequests::EndpointRegistry (class)">EndpointRegistry</a></span>, <span class='object_link'><a href="StubRequests/Error.html" title="StubRequests::Error (class)">Error</a></span>, <span class='object_link'><a href="StubRequests/InvalidType.html" title="StubRequests::InvalidType (class)">InvalidType</a></span>, <span class='object_link'><a href="StubRequests/InvalidUri.html" title="StubRequests::InvalidUri (class)">InvalidUri</a></span>, <span class='object_link'><a href="StubRequests/Service.html" title="StubRequests::Service (class)">Service</a></span>, <span class='object_link'><a href="StubRequests/ServiceHaveEndpoints.html" title="StubRequests::ServiceHaveEndpoints (class)">ServiceHaveEndpoints</a></span>, <span class='object_link'><a href="StubRequests/ServiceNotFound.html" title="StubRequests::ServiceNotFound (class)">ServiceNotFound</a></span>, <span class='object_link'><a href="StubRequests/ServiceRegistry.html" title="StubRequests::ServiceRegistry (class)">ServiceRegistry</a></span>, <span class='object_link'><a href="StubRequests/UriSegmentMismatch.html" title="StubRequests::UriSegmentMismatch (class)">UriSegmentMismatch</a></span>, <span class='object_link'><a href="StubRequests/WebMockBuilder.html" title="StubRequests::WebMockBuilder (class)">WebMockBuilder</a></span>
152
-
153
-
154
- </p>
155
-
156
-
157
- <h2>
158
- Constant Summary
159
- <small><a href="#" class="constants_summary_toggle">collapse</a></small>
160
- </h2>
161
-
162
- <dl class="constants">
163
-
164
- <dt id="VERSION-constant" class="">VERSION =
165
- <div class="docstring">
166
- <div class="discussion">
167
- <p>Returns a version string</p>
168
-
169
-
170
- </div>
171
- </div>
172
- <div class="tags">
173
-
174
- <p class="tag_title">Returns:</p>
175
- <ul class="return">
176
-
177
- <li>
178
-
179
-
180
- <span class='type'>(<tt><span class='object_link'><a href="String.html" title="String (class)">String</a></span></tt>)</span>
181
-
182
-
183
-
184
- &mdash;
185
- <div class='inline'><p>a version string</p>
186
- </div>
187
-
188
- </li>
189
-
190
- </ul>
191
- <p class="tag_title">Since:</p>
192
- <ul class="since">
193
-
194
- <li>
195
-
196
-
197
-
198
-
199
-
200
- <div class='inline'><p>0.1.0</p>
201
- </div>
202
-
203
- </li>
204
-
205
- </ul>
206
-
207
- </div>
208
- </dt>
209
- <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>0.1.0</span><span class='tstring_end'>&quot;</span></span></pre></dd>
210
-
211
- </dl>
212
-
213
-
214
-
215
-
216
-
217
- <h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
218
- <ul class="summary">
219
-
220
- <li class="public ">
221
- <span class="summary_signature">
222
-
223
- <a href="#logger-instance_method" title="#logger (instance method)">#<strong>logger</strong> &#x21d2; Logger </a>
224
-
225
-
226
-
227
- </span>
228
-
229
-
230
-
231
-
232
-
233
-
234
-
235
-
236
-
237
-
238
-
239
-
240
- <span class="summary_desc"><div class='inline'><p>The logger to use in the gem.</p>
241
- </div></span>
242
-
243
- </li>
244
-
245
-
246
- </ul>
247
-
248
-
249
-
250
-
251
-
252
- <h2>
253
- Instance Method Summary
254
- <small><a href="#" class="summary_toggle">collapse</a></small>
255
- </h2>
256
-
257
- <ul class="summary">
258
-
259
- <li class="public ">
260
- <span class="summary_signature">
261
-
262
- <a href="#version-instance_method" title="#version (instance method)">#<strong>version</strong> &#x21d2; String </a>
263
-
264
-
265
-
266
- </span>
267
-
268
-
269
-
270
-
271
-
272
-
273
-
274
-
275
-
276
- <span class="summary_desc"><div class='inline'><p>The current version of the gem.</p>
277
- </div></span>
278
-
279
- </li>
280
-
281
-
282
- </ul>
283
-
284
-
285
-
286
-
287
-
288
-
289
-
290
-
291
-
292
-
293
-
294
-
295
- <h3 class="inherited">Methods included from <span class='object_link'><a href="StubRequests/API.html" title="StubRequests::API (module)">API</a></span></h3>
296
- <p class="inherited"><span class='object_link'><a href="StubRequests/API.html#included-class_method" title="StubRequests::API.included (method)">included</a></span>, <span class='object_link'><a href="StubRequests/API.html#register_service-instance_method" title="StubRequests::API#register_service (method)">#register_service</a></span>, <span class='object_link'><a href="StubRequests/API.html#stub_endpoint-instance_method" title="StubRequests::API#stub_endpoint (method)">#stub_endpoint</a></span></p>
297
-
298
-
299
- <div id="instance_attr_details" class="attr_details">
300
- <h2>Instance Attribute Details</h2>
301
-
302
-
303
- <span id="logger=-instance_method"></span>
304
- <div class="method_details first">
305
- <h3 class="signature first" id="logger-instance_method">
306
-
307
- #<strong>logger</strong> &#x21d2; <tt>Logger</tt>
308
-
309
-
310
-
311
-
312
-
313
- </h3><div class="docstring">
314
- <div class="discussion">
315
- <p>Returns the logger to use in the gem</p>
316
-
317
-
318
- </div>
319
- </div>
320
- <div class="tags">
321
-
322
- <p class="tag_title">Returns:</p>
323
- <ul class="return">
324
-
325
- <li>
326
-
327
-
328
- <span class='type'>(<tt>Logger</tt>)</span>
329
-
330
-
331
-
332
- &mdash;
333
- <div class='inline'><p>the logger to use in the gem</p>
334
- </div>
335
-
336
- </li>
337
-
338
- </ul>
339
-
340
- </div><table class="source_code">
341
- <tr>
342
- <td>
343
- <pre class="lines">
344
-
345
-
346
- 79
347
- 80
348
- 81</pre>
349
- </td>
350
- <td>
351
- <pre class="code"><span class="info file"># File 'lib/stub_requests/stub_requests.rb', line 79</span>
352
-
353
- <span class='kw'>def</span> <span class='id identifier rubyid_logger'>logger</span>
354
- <span class='ivar'>@logger</span>
355
- <span class='kw'>end</span></pre>
356
- </td>
357
- </tr>
358
- </table>
359
- </div>
360
-
361
- </div>
362
-
363
-
364
- <div id="instance_method_details" class="method_details_list">
365
- <h2>Instance Method Details</h2>
366
-
367
-
368
- <div class="method_details first">
369
- <h3 class="signature first" id="version-instance_method">
370
-
371
- #<strong>version</strong> &#x21d2; <tt><span class='object_link'><a href="String.html" title="String (class)">String</a></span></tt>
372
-
373
-
374
-
375
-
376
-
377
- </h3><div class="docstring">
378
- <div class="discussion">
379
- <p>The current version of the gem</p>
380
-
381
-
382
- </div>
383
- </div>
384
- <div class="tags">
385
-
386
- <p class="tag_title">Returns:</p>
387
- <ul class="return">
388
-
389
- <li>
390
-
391
-
392
- <span class='type'>(<tt><span class='object_link'><a href="String.html" title="String (class)">String</a></span></tt>)</span>
393
-
394
-
395
-
396
- &mdash;
397
- <div class='inline'><p>version string, <code>&quot;1.0.0&quot;</code></p>
398
- </div>
399
-
400
- </li>
401
-
402
- </ul>
403
- <p class="tag_title">Since:</p>
404
- <ul class="since">
405
-
406
- <li>
407
-
408
-
409
-
410
-
411
-
412
- <div class='inline'><p>0.1.0</p>
413
- </div>
414
-
415
- </li>
416
-
417
- </ul>
418
-
419
- </div><table class="source_code">
420
- <tr>
421
- <td>
422
- <pre class="lines">
423
-
424
-
425
- 87
426
- 88
427
- 89</pre>
428
- </td>
429
- <td>
430
- <pre class="code"><span class="info file"># File 'lib/stub_requests/stub_requests.rb', line 87</span>
431
-
432
- <span class='kw'>def</span> <span class='id identifier rubyid_version'>version</span>
433
- <span class='const'><span class='object_link'><a href="#VERSION-constant" title="StubRequests::VERSION (constant)">VERSION</a></span></span>
434
- <span class='kw'>end</span></pre>
435
- </td>
436
- </tr>
437
- </table>
438
- </div>
439
-
440
- </div>
441
-
442
- </div>
443
-
444
- <div id="footer">
445
- Generated on Fri Feb 1 19:57:29 2019 by
446
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
447
- 0.9.18 (ruby-2.5.3).
448
- </div>
449
-
450
- </div>
451
- </body>
452
- </html>
data/docs/Time.html DELETED
@@ -1,232 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>
7
- Class: Time
8
-
9
- &mdash; Documentation by YARD 0.9.18
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
14
-
15
- <link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
16
-
17
- <script type="text/javascript" charset="utf-8">
18
- pathId = "Time";
19
- relpath = '';
20
- </script>
21
-
22
-
23
- <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
24
-
25
- <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
26
-
27
-
28
- </head>
29
- <body>
30
- <div class="nav_wrap">
31
- <iframe id="nav" src="class_list.html?1"></iframe>
32
- <div id="resizer"></div>
33
- </div>
34
-
35
- <div id="main" tabindex="-1">
36
- <div id="header">
37
- <div id="menu">
38
-
39
- <a href="_index.html">Index (T)</a> &raquo;
40
-
41
-
42
- <span class="title">Time</span>
43
-
44
- </div>
45
-
46
- <div id="search">
47
-
48
- <a class="full_list_link" id="class_list_link"
49
- href="class_list.html">
50
-
51
- <svg width="24" height="24">
52
- <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
- <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
- <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
- </svg>
56
- </a>
57
-
58
- </div>
59
- <div class="clear"></div>
60
- </div>
61
-
62
- <div id="content"><h1>Class: Time
63
-
64
-
65
-
66
- </h1>
67
- <div class="box_info">
68
-
69
- <dl>
70
- <dt>Inherits:</dt>
71
- <dd>
72
- <span class="inheritName"><span class='object_link'><a href="Object.html" title="Object (class)">Object</a></span></span>
73
-
74
- <ul class="fullTree">
75
- <li><span class='object_link'><a href="Object.html" title="Object (class)">Object</a></span></li>
76
-
77
- <li class="next">Time</li>
78
-
79
- </ul>
80
- <a href="#" class="inheritanceTree">show all</a>
81
-
82
- </dd>
83
- </dl>
84
-
85
-
86
-
87
-
88
-
89
-
90
-
91
-
92
-
93
-
94
-
95
- <dl>
96
- <dt>Defined in:</dt>
97
- <dd>lib/stub_requests/core_ext/object/blank.rb</dd>
98
- </dl>
99
-
100
- </div>
101
-
102
- <h2>Overview</h2><div class="docstring">
103
- <div class="discussion">
104
-
105
-
106
- </div>
107
- </div>
108
- <div class="tags">
109
-
110
-
111
- <p class="tag_title">See Also:</p>
112
- <ul class="see">
113
-
114
- <li><span class='object_link'><a href="" title="Time (class)">Time</a></span></li>
115
-
116
- </ul>
117
-
118
- </div>
119
-
120
-
121
-
122
-
123
-
124
-
125
-
126
- <h2>
127
- Instance Method Summary
128
- <small><a href="#" class="summary_toggle">collapse</a></small>
129
- </h2>
130
-
131
- <ul class="summary">
132
-
133
- <li class="public ">
134
- <span class="summary_signature">
135
-
136
- <a href="#blank%3F-instance_method" title="#blank? (instance method)">#<strong>blank?</strong> &#x21d2; false </a>
137
-
138
-
139
-
140
- </span>
141
-
142
-
143
-
144
-
145
-
146
-
147
-
148
-
149
-
150
- <span class="summary_desc"><div class='inline'><p>No Time is blank:.</p>
151
- </div></span>
152
-
153
- </li>
154
-
155
-
156
- </ul>
157
-
158
-
159
-
160
-
161
- <div id="instance_method_details" class="method_details_list">
162
- <h2>Instance Method Details</h2>
163
-
164
-
165
- <div class="method_details first">
166
- <h3 class="signature first" id="blank?-instance_method">
167
-
168
- #<strong>blank?</strong> &#x21d2; <tt>false</tt>
169
-
170
-
171
-
172
-
173
-
174
- </h3><div class="docstring">
175
- <div class="discussion">
176
- <p>No Time is blank:</p>
177
-
178
- <p>Time.now.blank? # =&gt; false</p>
179
-
180
-
181
- </div>
182
- </div>
183
- <div class="tags">
184
-
185
- <p class="tag_title">Returns:</p>
186
- <ul class="return">
187
-
188
- <li>
189
-
190
-
191
- <span class='type'>(<tt>false</tt>)</span>
192
-
193
-
194
-
195
- </li>
196
-
197
- </ul>
198
-
199
- </div><table class="source_code">
200
- <tr>
201
- <td>
202
- <pre class="lines">
203
-
204
-
205
- 168
206
- 169
207
- 170</pre>
208
- </td>
209
- <td>
210
- <pre class="code"><span class="info file"># File 'lib/stub_requests/core_ext/object/blank.rb', line 168</span>
211
-
212
- <span class='kw'>def</span> <span class='id identifier rubyid_blank?'>blank?</span>
213
- <span class='kw'>false</span>
214
- <span class='kw'>end</span></pre>
215
- </td>
216
- </tr>
217
- </table>
218
- </div>
219
-
220
- </div>
221
-
222
- </div>
223
-
224
- <div id="footer">
225
- Generated on Fri Feb 1 19:57:30 2019 by
226
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
227
- 0.9.18 (ruby-2.5.3).
228
- </div>
229
-
230
- </div>
231
- </body>
232
- </html>