module ANSI
ANSI namespace module contains all the ANSI related classes.
Constants
- CHART
Table of codes used throughout the system.
- SPECIAL_CHART
Public Class Methods
const_missing(name)
click to toggle source
Check metadata for missing constants.
Calls superclass method
# 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