class String

Simple conversion to html (intended for yaml output)

Public Instance Methods

to_html() click to toggle source
# File lib/rack_warden/core_patches.rb, line 3
def to_html
        self.gsub(/\n|\r/, '<br>').gsub(/  /, '&nbsp;&nbsp;')
end