Skip to content

Instantly share code, notes, and snippets.

@pablobm
Created January 13, 2010 09:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pablobm/276065 to your computer and use it in GitHub Desktop.
Save pablobm/276065 to your computer and use it in GitHub Desktop.
#
# hputs(): makes debug messages readable when debugging specs with the TextMate RSpec bundle
#
def hputs(*args)
puts ERB::Util.html_escape(args.join("\n")).gsub(/\r?\n/, '<br/>') + '<br/>'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment