I came accross a problem which made me wonder. Sort of about dotting
into a variable.
I could find the answer in my ruby book. How would I do the access at
the end here.
I know I could probably use accessors, but is that the only way to do
@num = 3
@friend = A.new
myobj = B.new
syntax here ? Is this allowed, is it done another way ?
x = myobj.@friend.@num