I still don't feel like this is adequately answered. how does one do this in jruby:
MyClass myobj = new MyClass;
InheritsFromMyClass changedobj = (InheritsFromMyClass)myobj;
I still don't feel like this is adequately answered. how does one do this in jruby:
MyClass myobj = new MyClass;
InheritsFromMyClass changedobj = (InheritsFromMyClass)myobj;
Since Ruby is a dynamically typed language you do not need to cast the type:
myobj = MyClass.new
changedobj = myobj