mirror of
https://github.com/rubyjs/therubyracer
synced 2023-03-27 23:21:42 -04:00
add print method to the shell.
This commit is contained in:
parent
0dbdd0c529
commit
00bbed5930
1 changed files with 4 additions and 0 deletions
|
@ -35,6 +35,10 @@ HELP
|
||||||
"[object TheRubyRacer]"
|
"[object TheRubyRacer]"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def print(string)
|
||||||
|
puts string
|
||||||
|
end
|
||||||
|
|
||||||
def ruby(src)
|
def ruby(src)
|
||||||
eval(src)
|
eval(src)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue