Method: Vedeu::DSL::Wordwrap#prune_string
- Defined in:
- lib/vedeu/dsl/helpers/wordwrap.rb
#prune_string(string) ⇒ 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.
Returns the string pruned.
128 129 130 |
# File 'lib/vedeu/dsl/helpers/wordwrap.rb', line 128 def prune_string(string) string.chomp.slice(0..pruned_width) end |