Re: [Ironruby-core] IronRuby and Cucumber

2010-09-07 Thread kavin_2010 IronRubyuser
Hi Shay, I have been closely following the details mentioned in your website for the past two weeks. The example solution file for running IronRuby using .NET and VS2008 was very helpful for me. I succeeded in running IronRuby scripts using the sample provided by you. Thankyou for the same. kavin

Re: [Ironruby-core] IronRuby and Cucumber

2010-09-07 Thread kavin_2010 IronRubyuser
Hi Shay, Thankyou for the answer. Yes the problem got solved. I got the examples for the cs folder from the below site and compiled. The instruction states that we need to do compile.bat. This worked fine and the dll got generated for me. After this I am stuck and cucumber feature files are no

Re: [Ironruby-core] accessor methods and property syntax in .NET

2010-09-07 Thread Shay Friedman
Beware! Contributing to the IronRuby source code might result in having babies!!! :-) Congratulations Brian! On Tue, Sep 7, 2010 at 3:47 PM, Brian Genisio wrote: > Actually, we discussed this about a month ago: > http://rubyforge.org/pipermail/ironruby-core/2010-July/007154.html > >

Re: [Ironruby-core] accessor methods and property syntax in .NET

2010-09-07 Thread Davy Brion
Hey Brian, i saw that thread, but didn't really see a definitive answer as to how to work around it until it's implemented (though i might've missed it), which is why i thought i'd raise the question again :) On Tue, Sep 7, 2010 at 2:47 PM, Brian Genisio wrote: > Actually, we discussed this abou

Re: [Ironruby-core] accessor methods and property syntax in .NET

2010-09-07 Thread Brian Genisio
Actually, we discussed this about a month ago: http://rubyforge.org/pipermail/ironruby-core/2010-July/007154.html The outcome was that a feature request was added to allow for C# properties to be defined using getter/setter in rub

Re: [Ironruby-core] IronRuby and Cucumber

2010-09-07 Thread Shay Friedman
Hi Kevin, I found the answer to your question here: http://blog.webintellix.com/2009/10/how-to-use-cucumber-with-net-and-c.html. This is what the guy there says: "As of version 0.4.3 of Cucumber, the examples\cs folder is no longer there in the code downloaded with the gem. If you like to run the

[Ironruby-core] Help required in running icucumber for CS examples

2010-09-07 Thread kavin guest
Hello All, After installing Iron ruby1.0 and cucumber-0.6.4 everything worked fine till compile.bat was executed. But when I executed icucumber features for cs examples I am getting the below error. I googled several times but could not solve the problem, Any Help would be highly Appreciated as

Re: [Ironruby-core] accessor methods and property syntax in .NET

2010-09-07 Thread Davy Brion
your solution does however work for the assignment accessor... in fact, you can do something like this: class Foo attr_reader :bar def bar=(val) # do more stuff here for example @bar = val end end and then you can do the following in C#: var value = myObject.bar; myObject.bar = s

Re: [Ironruby-core] accessor methods and property syntax in .NET

2010-09-07 Thread Davy Brion
if i do that, calling bar as a property like this: var value = myObject.bar; leads to 'value' being an instance of IronRuby.BuiltIns.RubyMethod, and not the value that is in the @bar instance field which i'm using 1.1 btw, not sure how this would behave on 1.0 from looking at the IronRuby sour

Re: [Ironruby-core] accessor methods and property syntax in .NET

2010-09-07 Thread Ivan Porto Carerro
You can just define them as attr_accessors and then implement the methods class Foo attr_accessor :bar, :baz def bar=(val) # do more stuff here for example @bar = val end def bar @bar end end On Tue, Sep 7, 2010 at 10:36 AM, Davy Brion wrote: > Hi all, > > IronRuby has

[Ironruby-core] accessor methods and property syntax in .NET

2010-09-07 Thread Davy Brion
Hi all, IronRuby has a nice trick where attributes defined by attr_reader, attr_accessor and attr_writer are usable as properties from C#... i was just wondering: is it possible to use the same trick in our own ruby code? or can anyone just point me in the right direction as to where in the IronR