Class: CodelessCode::Formats::Term
- 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
Instance Method Summary collapse
- #call ⇒ Object
-
#color(str) ⇒ Object
:reek:UtilityFunction.
Methods inherited from Base
Constructor Details
This class inherits a constructor from CodelessCode::Formats::Base
Instance Method Details
#call ⇒ Object
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 |