@@ -121,9 +121,10 @@ io_wait_event(VALUE io, int event, VALUE timeout)
121
121
122
122
/*
123
123
* call-seq:
124
- * io.ready? -> true or false
124
+ * io.ready? -> truthy or falsy
125
125
*
126
- * Returns +true+ if input available without blocking, or +false+.
126
+ * Returns a truthy value if input available without blocking, or a
127
+ * falsy value.
127
128
*
128
129
* You must require 'io/wait' to use this method.
129
130
*/
@@ -152,12 +153,12 @@ io_ready_p(VALUE io)
152
153
153
154
/*
154
155
* call-seq:
155
- * io.wait_readable -> true or false
156
- * io.wait_readable(timeout) -> true or false
156
+ * io.wait_readable -> truthy or falsy
157
+ * io.wait_readable(timeout) -> truthy or falsy
157
158
*
158
- * Waits until IO is readable and returns +true+ , or
159
- * +false+ when times out.
160
- * Returns +true+ immediately when buffered data is available.
159
+ * Waits until IO is readable and returns a truthy value , or a falsy
160
+ * value when times out. Returns a truthy value immediately when
161
+ * buffered data is available.
161
162
*
162
163
* You must require 'io/wait' to use this method.
163
164
*/
@@ -194,11 +195,11 @@ io_wait_readable(int argc, VALUE *argv, VALUE io)
194
195
195
196
/*
196
197
* call-seq:
197
- * io.wait_writable -> true or false
198
- * io.wait_writable(timeout) -> true or false
198
+ * io.wait_writable -> truthy or falsy
199
+ * io.wait_writable(timeout) -> truthy or falsy
199
200
*
200
- * Waits until IO is writable and returns +true+ or
201
- * +false+ when times out.
201
+ * Waits until IO is writable and returns a truthy value or a falsy
202
+ * value when times out.
202
203
*
203
204
* You must require 'io/wait' to use this method.
204
205
*/
@@ -231,11 +232,11 @@ io_wait_writable(int argc, VALUE *argv, VALUE io)
231
232
#ifdef HAVE_RB_IO_WAIT
232
233
/*
233
234
* call-seq:
234
- * io.wait_priority -> true or false
235
- * io.wait_priority(timeout) -> true or false
235
+ * io.wait_priority -> truthy or falsy
236
+ * io.wait_priority(timeout) -> truthy or falsy
236
237
*
237
- * Waits until IO is priority and returns +true+ or
238
- * +false+ when times out.
238
+ * Waits until IO is priority and returns a truthy value or a falsy
239
+ * value when times out.
239
240
*
240
241
* You must require 'io/wait' to use this method.
241
242
*/
@@ -292,16 +293,16 @@ wait_mode_sym(VALUE mode)
292
293
293
294
/*
294
295
* call-seq:
295
- * io.wait(events, timeout) -> event mask or false.
296
- * io.wait(timeout = nil, mode = :read) -> event mask or false .
296
+ * io.wait(events, timeout) -> truthy or falsy
297
+ * io.wait(timeout = nil, mode = :read) -> truthy or falsy .
297
298
*
298
299
* Waits until the IO becomes ready for the specified events and returns the
299
- * subset of events that become ready, or +false+ when times out.
300
+ * subset of events that become ready, or a falsy value when times out.
300
301
*
301
302
* The events can be a bit mask of +IO::READABLE+, +IO::WRITABLE+ or
302
303
* +IO::PRIORITY+.
303
304
*
304
- * Returns +true+ immediately when buffered data is available.
305
+ * Returns a truthy value immediately when buffered data is available.
305
306
*
306
307
* Optional parameter +mode+ is one of +:read+, +:write+, or
307
308
* +:read_write+.
0 commit comments