wet
1
Hi chaps,I was wondering if it is currently possible to automatically
convert java style getters and setters into their ruby-esque
equivalents?
eg, if I have a class like
class Hamster {
private String colour;
public String getColour() { return colour; }
public void setColour(final String colour) { this.colour = colour; }
}
Is it possible to access that you can access it in jruby like this:
myHamster = Hamster.new
myHamster.colour=“Gold”
Thanks,
Tom
wet
2
Thomas W. wrote:
Is it possible to access that you can access it in jruby like this:
myHamster = Hamster.new
myHamster.colour=“Gold”
That should work now…doesn’t it?
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
wet
3
Charles,You’re quite right, it does. Sorry my test was going wrong due
to my
own noobitude.
Many thanks,
Tom
2008/7/24 Charles Oliver N. [email protected]: