Module: ANSI

### Home Classes Methods

### In Files

- lib/ansi/bbcode.rb
- lib/ansi/chain.rb
- lib/ansi/chart.rb
- lib/ansi/code.rb
- lib/ansi/columns.rb
- lib/ansi/constants.rb
- lib/ansi/diff.rb
- lib/ansi/hexdump.rb
- lib/ansi/mixin.rb
- lib/ansi/progressbar.rb
- lib/ansi/table.rb
- lib/ansi/terminal/curses.rb
- lib/ansi/terminal/stty.rb
- lib/ansi/terminal/termios.rb
- lib/ansi/terminal/win32.rb
- lib/ansi/terminal.rb
- lib/ansi/version.rb
- lib/ansi.rb

### Namespace

- MODULE ANSI::BBCode
- MODULE ANSI::Code
- MODULE ANSI::Constants
- MODULE ANSI::Mixin
- MODULE ANSI::Terminal
- CLASS ANSI::Chain
- CLASS ANSI::Columns
- CLASS ANSI::Diff
- CLASS ANSI::HexDump
- CLASS ANSI::Logger
- CLASS ANSI::ProgressBar
- CLASS ANSI::String
- CLASS ANSI::Table

### Methods

- ::const_missing
- ::metadata
- ::string

### Files

- COPYING.rdoc
- DEMO.rdoc
- HISTORY.rdoc
- README.rdoc

### Class/Module Index

Quicksearch

- ANSI
- ANSI::BBCode
- ANSI::Chain
- ANSI::Code
- ANSI::Columns
- ANSI::Constants
- ANSI::Diff
- ANSI::HexDump
- ANSI::Logger
- ANSI::Mixin
- ANSI::ProgressBar
- ANSI::String
- ANSI::Table
- ANSI::Terminal
- Object
- String

No matching classes.

# ANSI

ANSI namespace module contains all the ANSI related classes.

### Constants

CHART

  Table of codes used throughout the system.

  @see en.wikipedia.org/wiki/ANSI_escape_code

Progressbar
SPECIAL_CHART

### Public Class Methods

const_missing(name) click to toggle source

Check metadata for missing constants.

    # File lib/ansi/version.rb, line 11
    def self.const_missing(name)
      metadata[name.to_s.downcase] || super(name)
    end

metadata() click to toggle source

Returns Hash table of project metadata.

    # File lib/ansi/version.rb, line 3
    def self.metadata
      @spec ||= (
        require 'yaml'
        YAML.load(File.new(File.dirname(__FILE__) + '/../ansi.yml'))
      )
    end

string(str) click to toggle source

Create a new Ansi::String object.

    # File lib/ansi/string.rb, line 5
    def ANSI.string(str)
      ANSI::String.new(str)
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.