Method: Vedeu::Output::Compressors::Character#style_for
- Defined in:
- lib/vedeu/output/compressors/character.rb
#style_for(char) ⇒ String (private)
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.
Compress by not repeatedly sending the same style(s) for each character which has the same style(s) as the last character output.
97 98 99 100 101 102 |
# File 'lib/vedeu/output/compressors/character.rb', line 97 def style_for(char) return '' if char.style == @style @style = char.style @style.to_s end |