C
Costas C.j
Hi. I am new to ruby and i know c and c++. i wonder if thre is something
similar to c pointers for ruby. Let me give an example.
I have an object foo with some methods, i have object foo2 with other
methods and foo3 object. I would like to give me a code example how i
can access from foo to foo3. Lets say that they are on a tree or graph
foo
/ \
foo2 foo3
i think the hash maybe is an option but i want something for general
purpose, example for n foos object or foo to have more than 2 children
and access from one to another.
Sorry for my English
Thank you for your Help
similar to c pointers for ruby. Let me give an example.
I have an object foo with some methods, i have object foo2 with other
methods and foo3 object. I would like to give me a code example how i
can access from foo to foo3. Lets say that they are on a tree or graph
foo
/ \
foo2 foo3
i think the hash maybe is an option but i want something for general
purpose, example for n foos object or foo to have more than 2 children
and access from one to another.
Sorry for my English
Thank you for your Help