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