Module: Kwartz::NoTextEnhancer
- Defined in:
- lib/kwartz/translator.rb
Overview
:nodoc:
Instance Method Summary collapse
Instance Method Details
#translate_string(str) ⇒ Object
247 248 249 250 251 252 |
# File 'lib/kwartz/translator.rb', line 247 def translate_string(str) @sb << (@nl * str.count("\n")) pos = str.rindex("\n") len = pos ? str.length - pos - 1 : str.length @sb << (' ' * len) end |