module Spiffup

Spiffup Module: Root Module for Spiffup.

Spiffup Module

Spiffup Module

Spiffup Module

Constants

RST

Define String Tags

VERSION

Version

Public Class Methods

disable_color() click to toggle source

Disable color: Disables color output (makes everything un-colored).

# File lib/spiffup.rb, line 16
def self.disable_color

        # Drop Terminal Colors
        TermColor::COLS.each do |col, _idx|

                # Clear Constants
                remove_const col.upcase
                remove_const "B#{col.upcase}"
                const_set col.upcase, ''
                const_set "B#{col.upcase}", ''

                # Clear String Methods
                String.send(:define_method, col) { self }
                String.send(:define_method, "b#{col}") { self }
        end

        nil
end