module Athena::Console::Formatter::WrappableInterface

Overview

Extension of ACON::Formatter::Interface that supports word wrapping.

Included Modules

Direct including types

Defined in:

formatter/wrappable_interface.cr

Instance Method Summary

Instance methods inherited from module Athena::Console::Formatter::Interface

decorated=(decorated : Bool) decorated=, decorated? : Bool decorated?, format(message : String | Nil) : String format, has_style?(name : String) : Bool has_style?, set_style(name : String, style : ACON::Formatter::OutputStyleInterface) : Nil set_style, style(name : String) : ACON::Formatter::OutputStyleInterface style

Instance Method Detail

abstract def format_and_wrap(message : String | Nil, width : Int32) : String #

Formats the provided message according to the defined styles, wrapping it at the provided width. A width of 0 means no wrapping.


[View source]