Module: ANSI
- Extended by:
- Code
- Defined in:
- lib/ansi.rb,
lib/ansi/code.rb,
lib/ansi/diff.rb,
lib/ansi/mixin.rb,
lib/ansi/table.rb,
lib/ansi/bbcode.rb,
lib/ansi/columns.rb,
lib/ansi/terminal.rb,
lib/ansi/progressbar.rb,
lib/ansi/terminal/stty.rb,
lib/ansi/terminal/win32.rb,
lib/ansi/terminal/curses.rb,
lib/ansi/terminal/termios.rb
Overview
BBCode
Copyright © 2002 Thomas-Ivo Heinen
This module is free software. You may use, modify, and/or redistribute this software under the same terms as Ruby.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Defined Under Namespace
Modules: BBCode, Code, Mixin, Terminal Classes: Columns, Diff, Logger, ProgressBar, String, Table
Constant Summary collapse
- SUPPORTED =
deprecate
true
- Progressbar =
:nodoc:
ProgressBar
Constants included from Code
Code::BLACK, Code::BLINK, Code::BLUE, Code::BOLD, Code::CLEAR, Code::CLEAR_LINE, Code::CLEAR_SCREEN, Code::CLR, Code::CLS, Code::CONCEALED, Code::CYAN, Code::DARK, Code::GREEN, Code::ITALIC, Code::MAGENTA, Code::NEGATIVE, Code::ON_BLACK, Code::ON_BLUE, Code::ON_CYAN, Code::ON_GREEN, Code::ON_MAGENTA, Code::ON_RED, Code::ON_WHITE, Code::ON_YELLOW, Code::PATTERN, Code::RAPID, Code::RED, Code::RESET, Code::RESTORE, Code::REVERSE, Code::SAVE, Code::STRIKE, Code::TABLE, Code::UNDERLINE, Code::UNDERSCORE, Code::WHITE, Code::YELLOW
Class Method Summary collapse
-
.const_missing(name) ⇒ Object
Check metadata for missing constants.
-
.meta ⇒ Object
Returns Hash table of project metadata.
-
.string(str) ⇒ Object
Create a new Ansi::String object.
Methods included from Code
ansi, clear, clear_line, clear_screen, clr, cls, colors, display, down, left, move, reset, restore, right, save, style, styles, unansi, uncolered, unstyle, up
Class Method Details
.const_missing(name) ⇒ Object
Check metadata for missing constants.
12 13 14 |
# File 'lib/ansi.rb', line 12 def self.const_missing(name) [name.to_s.downcase] || super(name) end |
.meta ⇒ Object
Returns Hash table of project metadata.
4 5 6 7 8 9 |
# File 'lib/ansi.rb', line 4 def self. @spec ||= ( require 'yaml' YAML.load(File.new(File.dirname(__FILE__) + '/ansi.yml')) ) end |