module HtmlTags::Shared

Constants

N

Public Instance Methods

beautify_string(i) click to toggle source
#

beautify_string

First run .squeeze(‘ ’), then delete newlines, to make a string more beautiful.

#
# File lib/html_tags/shared.rb, line 19
def beautify_string(i)
  i.squeeze(' ').delete("\n")
end