Hi,
I'm just trying to learn Ruby and am wondering what the proper way of
having a composite class (not a mixin). I'd like to have one class be
an instance variable of another class.
Class X
def myX
End
End
Class Y
myNest = X::new
def myY
end
end
myObject = Y::new
myObject::myNest.myX # <------ gives an error
What's the proper way of doing this in Ruby?
Thanks,
S