Holden Glova <dsafari / paradise.net.nz> writes:

> class RuntimeInterpreter
>  
>         def invoke(file)
>                 streams = Open3.popen3("ruby -w #{file}")
>                 streams.at(1).each() { |line|
>                         puts line
>                 }
>         end
> end

Q: what does 'invoke' return?

>     result = interpreter.invoke("../useless.rb")
>  
>     assert(result == "Useless method in a useless class")

Q: what does this code assume that 'invoke' returns?



Dave