Module: HtmlTags::Shared

Included in:
HtmlTags
Defined in:
lib/html_tags/shared.rb

Overview

require ‘html_tags/shared.rb’

Constant Summary collapse

N =
"\n"

Instance Method Summary collapse

Instance Method Details

#beautify_string(i) ⇒ Object

#

beautify_string

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

#


19
20
21
# File 'lib/html_tags/shared.rb', line 19

def beautify_string(i)
  i.squeeze(' ').delete("\n")
end