You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@tuscany.apache.org by Chandrashekhar Jain <ja...@yahoo.com> on 2008/02/07 07:35:08 UTC
Script implementation
Hi all,
The current script implementation examples deal with function calls. What if the as in the case of Ruby we have classes, and the methods have parameters which are in turn Ruby objects. Does the current Ruby Script implementation handle this case. If so, do we have an example which illustrates this use case.
thanks in advance
regards,
chandra
____________________________________________________________________________________
Looking for last minute shopping deals?
Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-user-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-user-help@ws.apache.org
Re: Script implementation
Posted by ant elder <an...@gmail.com>.
On Feb 7, 2008 6:35 AM, Chandrashekhar Jain <ja...@yahoo.com> wrote:
> Hi all,
>
> The current script implementation examples deal with function calls.
> What if the as in the case of Ruby we have classes, and the methods have
> parameters which are in turn Ruby objects. Does the current Ruby Script
> implementation handle this case. If so, do we have an example which
> illustrates this use case.
>
> thanks in advance
>
> regards,
> chandra
>
>
The current code doesn't support this but we could fix it, how about adding
a class attribute to the scdl, for example:
<tuscany:implementation.script script="helloworld.rb" class="Hello"
/>
would that do what you need?
Passing in parameters that are Ruby objects should be possible in some
circumstances, what would be creating the parameter objects - another Ruby
component or something else?
...ant