Method: TTY::Table::Renderer.select
- Defined in:
- lib/tty/table/renderer.rb
.select(type) ⇒ TTY::Table::Renderer
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Select renderer class based on string name.
The possible values for type are
[:basic, :ascii, :unicode]
33 34 35 |
# File 'lib/tty/table/renderer.rb', line 33 def select(type) RENDERER_MAPPER[type || :basic] end |