Thanks for answering that. I wrote a small C# interface and then implemented
that from IronRuby

On Thu, Feb 19, 2009 at 1:54 PM, Tomas Matousek <
[email protected]> wrote:

>  We currently don't support attributes. As a workaround you can define a
> class in C# that will have all the attributes. The class can then forward
> all functionality to Ruby (e.g. via abstract methods implemented in a class
> derived in Ruby).
>
>
>
> Tomas
>
>
>
> *From:* [email protected] [mailto:
> [email protected]] *On Behalf Of *Orion Edwards
> *Sent:* Wednesday, February 18, 2009 4:20 PM
> *To:* [email protected]
> *Subject:* [Ironruby-core] Attributes
>
>
>
> I'd like to mock up a WCF service using IronRuby.
>
> This presents some stumbling blocks however, in that WCF ServiceContracts
> are defined by creating an Interface and then applying attributes to it.
>
> Interface ~= Module in IronRuby, so that would probably be fine, but how
> can I apply attributes to the module and the methods it declares?
>
> _______________________________________________
> Ironruby-core mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/ironruby-core
>
>
_______________________________________________
Ironruby-core mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ironruby-core

Reply via email to