Module: Autumn::Formatting

Defined in:
lib/autumn/formatting.rb

Overview

Adds text formatting to Autumn objects. Text formatting (color and styles) is not a part of the original IRC spec, so many clients have come up with many different ways of sending formatted text. The classes in this module encapsulate those various methods.

To add formatting to a stem or leaf, simply include the appropriate module in your Leaf subclass, Stem instance, or other Autumn object. You can also use these constants directly from the module, without adding them into your class.

Where possible, all modules in the Formatting module follow an implicit protocol, which includes methods like color, bold, plain, and underline.

Defined Under Namespace

Modules: Ircle, Mirc

Constant Summary collapse

DEFAULT =

The default formatter for leaves that do not specify otherwise.

Mirc