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

meh. provide eval_js... not so crazy about it.

This commit is contained in:
Charles Lowell 2012-06-15 10:10:22 -05:00
parent a9079e02ad
commit 5de969fd97

View file

@ -12,6 +12,10 @@ class V8::Conversion
def to_ruby
self
end
def eval_js(source, filename = '<eval>')
V8::Context.new(:with => self).eval(source, filename)
end
end
module NativeObject