A challenge from Lady Java shown here via the JavaZone video.
Updated the message slightly, because Mirah is for the next generation of programmers.
$ mirah -e '
import java.util.ArrayList
import java.util.List
class Voulez
def initialize(more:List)
@words = ArrayList.new [:want]
more.each {|s| @words.add s}
end
def self.vous(verb:String)
self.new [:you, verb]
end
def avec(noun:String) returns :void
[:with, noun, "\n\n"].each {|s| @words.add s}
@words.each {|s| print "#{s} "}
end
end
marier = "to marry"; moi = "me"
Voulez.vous(marier).avec moi
'
want you to marry with me
It is avec, not avac.