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:
parent
c757632e48
commit
39fc3faa6b
1 changed files with 2 additions and 1 deletions
|
@ -13,6 +13,7 @@ $:.unshift(File.dirname(__FILE__) + '/../lib')
|
||||||
$:.unshift(File.dirname(__FILE__) + '/..')
|
$:.unshift(File.dirname(__FILE__) + '/..')
|
||||||
require 'v8'
|
require 'v8'
|
||||||
|
|
||||||
|
require 'erb'
|
||||||
def rputs(msg)
|
def rputs(msg)
|
||||||
puts ERB::Util.h(msg)
|
puts "<div>#{ERB::Util.h(msg)}</div>"
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue