Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
struct
Textwrap::Scanner
Inherits
Struct
<
Value
<
Object
Constants
WHITESPACE = /\s/
WORD_SEPARATORS = /\s|-/
Constructors
new
(string :
String
)
Source
Class methods
wrap_text
(string, target_width :
Number
= 80)
Source
Instance methods
words
Source
wrap_paragraph
(target_width :
Number
= 80, & :
String
-> _) :
Nil
Source
wrap_paragraph
(target_width :
Number
= 80) :
String
Source