Module: Inkjet

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

Defined Under Namespace

Modules: Colors, Indent, String, Styles Classes: Configuration, Substring

Constant Summary collapse

Close =
0
VERSION =
'0.0.6'

Class Method Summary collapse

Methods included from Styles::Formatters

included, #method_missing, #stylize, #stylize!

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::Styles::Formatters

Class Method Details

.escape(code) ⇒ Object



12
13
14
# File 'lib/inkjet.rb', line 12

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

.indent(*args, &block) ⇒ Object



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

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