Class: CodelessCode::Formats::Term

Inherits:
Base
  • Object
show all
Defined in:
lib/codeless_code/formats/term.rb

Overview

Renders the CodelessCode::Fable using ANSI control characters for bold, italics, colors, etc.

Instance Attribute Summary

Attributes inherited from Base

#raw

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from CodelessCode::Formats::Base

Instance Method Details

#callObject


26
27
28
# File 'lib/codeless_code/formats/term.rb', line 26

def call
  from_wiki
end

#color(str) ⇒ Object

:reek:UtilityFunction


31
32
33
# File 'lib/codeless_code/formats/term.rb', line 31

def color(str)
  ColorizedString.new(str)
end