Module ANSI::Mixin
In: lib/ansi/mixin.rb

This module is designed specifically for mixing into String-like classes or extending String-like objects.

Generally speaking the String#ansi method is the more elegant approach to modifying a string with codes via a method call. But in some cases this Mixin‘s design might be preferable. Indeed, it original intent was as a compatability layer for the colored gem.

Methods

Public Instance methods

Move cursor to line and column, insert +self.to_s+ and return to original positon.

[Validate]