1
0
Fork 0
mirror of https://github.com/rubyjs/therubyracer synced 2023-03-27 23:21:42 -04:00

add rputs() method for debugging with rspec and textmate

This commit is contained in:
Charles Lowell 2010-05-17 15:28:39 +03:00
parent c757632e48
commit 39fc3faa6b

View file

@ -13,6 +13,7 @@ $:.unshift(File.dirname(__FILE__) + '/../lib')
$:.unshift(File.dirname(__FILE__) + '/..')
require 'v8'
require 'erb'
def rputs(msg)
puts ERB::Util.h(msg)
puts "<div>#{ERB::Util.h(msg)}</div>"
end