Class: Vedeu::Renderers::Text
- Inherits:
-
Object
- Object
- Vedeu::Renderers::Text
- Includes:
- Options
- Defined in:
- lib/vedeu/output/renderers/text.rb
Overview
Converts a grid of Views::Char objects into a stream of escape sequences and content.
Instance Attribute Summary collapse
-
#options ⇒ Hash<Symbol => void>
included
from Options
private
Combines the options provided at instantiation with the default values.
Instance Method Summary collapse
-
#clear ⇒ String
Render a cleared output.
- #compress? ⇒ Boolean included from Options
-
#defaults ⇒ Hash<Symbol => void>
included
from Options
private
The default values for a new instance of this class.
-
#initialize(options = {}) ⇒ Vedeu::Renderers::Text
constructor
Returns a new instance of Vedeu::Renderers::Text.
- #render(output) ⇒ String
Constructor Details
#initialize(options = {}) ⇒ Vedeu::Renderers::Text
Returns a new instance of Vedeu::Renderers::Text.
16 17 18 |
# File 'lib/vedeu/output/renderers/text.rb', line 16 def initialize( = {}) @options = || {} end |
Instance Attribute Details
#options ⇒ Hash<Symbol => void> (private) Originally defined in module Options
Combines the options provided at instantiation with the default values.
Instance Method Details
#clear ⇒ String
Render a cleared output.
23 24 25 |
# File 'lib/vedeu/output/renderers/text.rb', line 23 def clear '' end |
#compress? ⇒ Boolean Originally defined in module Options
#defaults ⇒ Hash<Symbol => void> (private) Originally defined in module Options
The default values for a new instance of this class.
#render(output) ⇒ String
29 30 31 |
# File 'lib/vedeu/output/renderers/text.rb', line 29 def render(output) Vedeu::Output::Compressor.render(output) end |