Skip to content

Instantly share code, notes, and snippets.

@coreyti
Created January 23, 2009 20:16
Show Gist options
  • Save coreyti/51173 to your computer and use it in GitHub Desktop.
Save coreyti/51173 to your computer and use it in GitHub Desktop.
def inspect_mate(label="")
puts "#{label} #{yield.inspect.gsub(/</, '&lt;').gsub(/>/, '&gt;')}"
puts "<hr/>"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment