home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
ruby164.zip
/
rbemx164.zip
/
ruby
/
share
/
doc
/
eruby-0.9.4
/
examples
/
test.rb
< prev
next >
Wrap
Text File
|
2001-06-04
|
200b
|
13 lines
require "eruby"
if filename = ARGV.shift
file = open(filename)
else
filename = "-"
file = STDIN
end
compiler = ERuby::Compiler.new
code = compiler.compile_file(file)
eval(code, nil, filename)