(RUBY) The mysterious parents of Jack...

Post any examples or modules that you want to share here
Post Reply
tulamide
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

(RUBY) The mysterious parents of Jack...

Post by tulamide »

If you've played around with Ruby a bit, you probably stumbled across two undocumented Ruby instance methods: caption and parent.

While I already explained what caption does, it wasn't until now that I found out what parent is good for. Instead of explaining it, I'll show it to you in this little schematic.

I'm already trying to find any use for this...
Attachments
parent.fsm
(1.27 KiB) Downloaded 1161 times
"There lies the dog buried" (German saying translated literally)
KG_is_back
Posts: 1196
Joined: Tue Oct 22, 2013 5:43 pm
Location: Slovakia

Re: (RUBY) The mysterious parents of Jack...

Post by KG_is_back »

Can you use them to change names of parent an child?
User avatar
martinvicanek
Posts: 1334
Joined: Sat Jun 22, 2013 8:28 pm

Re: (RUBY) The mysterious parents of Jack...

Post by martinvicanek »

Freaky stuff. :ugeek:
tulamide
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: (RUBY) The mysterious parents of Jack...

Post by tulamide »

KG_is_back wrote:Can you use them to change names of parent an child?

I wish. But I couldn't find a way :(
"There lies the dog buried" (German saying translated literally)
User avatar
MyCo
Posts: 718
Joined: Tue Jul 13, 2010 12:33 pm
Location: Germany
Contact:

Re: (RUBY) The mysterious parents of Jack...

Post by MyCo »

tulamide
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: (RUBY) The mysterious parents of Jack...

Post by tulamide »

Indeed, you were. And not just seconds, but years! :mrgreen:
"There lies the dog buried" (German saying translated literally)
Post Reply