You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This portrays the return values more accurately and, in some cases,
fixes syntax highlighting when using the upcoming version of SDoc
(thanks to its heuristic for detecting Ruby code vs HTML code).
# word_wrap('Once upon a time, in a kingdom called Far Far Away, a king fell ill, and finding a successor to the throne turned out to be more trouble than anyone could have imagined...')
256
-
# # => Once upon a time, in a kingdom called Far Far Away, a king fell ill, and finding\na successor to the throne turned out to be more trouble than anyone could have\nimagined...
256
+
# # => "Once upon a time, in a kingdom called Far Far Away, a king fell ill, and finding\na successor to the throne turned out to be more trouble than anyone could have\nimagined..."
257
257
#
258
258
# word_wrap('Once upon a time', line_width: 8)
259
-
# # => Once\nupon a\ntime
259
+
# # => "Once\nupon a\ntime"
260
260
#
261
261
# word_wrap('Once upon a time', line_width: 1)
262
-
# # => Once\nupon\na\ntime
262
+
# # => "Once\nupon\na\ntime"
263
263
#
264
264
# You can also specify a custom +break_sequence+ ("\n" by default):
265
265
#
266
266
# word_wrap('Once upon a time', line_width: 1, break_sequence: "\r\n")
0 commit comments