Module: Inkjet

Includes:
Colors::Formatters
Defined in:
lib/inkjet.rb,
lib/inkjet/colors.rb,
lib/inkjet/indent.rb,
lib/inkjet/string.rb,
lib/inkjet/version.rb,
lib/inkjet/configuration.rb

Defined Under Namespace

Modules: Colors, Indent, String Classes: Configuration

Constant Summary collapse

Close =
0
Bold =
1
Dim =
2
Underline =
4
5
Invert =
7
Hidden =
8
VERSION =
'0.0.2'

Class Method Summary collapse

Methods included from Colors::Formatters

#colorize, #colorize!, #colorize_background, #colorize_background!, #colorize_with_background, #colorize_with_background!, included, #method_missing

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Inkjet::Colors::Formatters

Class Method Details

.escape(code) ⇒ Object



16
17
18
# File 'lib/inkjet.rb', line 16

def self.escape(code)
  "\e[#{code.to_s.chomp('m')}m"
end

.indent(*args, &block) ⇒ Object



20
21
22
# File 'lib/inkjet.rb', line 20

def self.indent(*args, &block)
  Indent.indent(*args, &block)
end