# scripting.rb
include Scriptable
x = 'Hello'
y = 'world'
groovy <<G
def z = 'multilanguage'
println("${x}, ${z} ${y}")
G
javascript <<JS
z = 'multilanguage'
println(x + ', ' + z + ' ' + y)
JS
# both => "Hello, multilanguage world!"
Friday, March 30, 2007
Can Your Ruby Do This?
Subscribe to:
Posts (Atom)