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]"
|
||||
end
|
||||
|
||||
def print(string)
|
||||
puts string
|
||||
end
|
||||
|
||||
def ruby(src)
|
||||
eval(src)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue