Module: ANSI

Defined in:
lib/ansi.rb,
lib/ansi/code.rb,
lib/ansi/bbcode.rb,
lib/ansi/terminal.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, Terminal Classes: Logger, Progressbar, String

Constant Summary collapse

VERSION =

:till: VERSION=“<%= version %>”

"1.1.0"
SUPPORTED =

Currently Windows is not supported.

!(RUBY_PLATFORM =~ /win/)

Class Method Summary collapse

Class Method Details

.string(str) ⇒ Object

Create a new Ansi::String object.



6
7
8
# File 'lib/ansi/string.rb', line 6

def ANSI.string(str)
  ANSI::String.new(str)
end