I'm just reading up on this. I like what I see, but forgive me if I
ask an ignorant question. I am making an ftp service that allows you
to call services on ruby's net/ftp:
http://ruby-doc.org/stdlib/libdoc/net/ftp/rdoc/classes/Net/FTP.html
But, with ftp, you often want to do a few operations at once. This is
why I am doing something like:
[
{
method: "voidcmd",
params: ["CWD "+( params.path || "/")]
},
{
method: "list",
result: "files"
}
]
This will effectively run:
ftp.voidcmd("CWD /")
ftp.list()
and return:
{files: " ... the result of ftp.list() ....", error: null}
Is there anything for this type of multiple method call?