Table of codes used throughout the system.
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
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
Create a new Ansi::String object.
# File lib/ansi/string.rb, line 5 def ANSI.string(str) ANSI::String.new(str) end