3 ms·
You spelled it wrong! Ruby’s approach is the most delightful, I find. elf is an instance of Elf and in elf.health, self is the elf. Elf is an instance of Cla
by gorgoiler 6y ago
You spelled it wrong!
Ruby’s approach is the most delightful, I find. elf is an instance of Elf and in elf.health, self is the elf.
Elf is an instance of Class and in Elf.surpass, self is the Elf class itself.
- rbanffy 6y agoRuby's irregular syntax drives me crazy. But it is beautiful.
- staticautomatic 6y agoI gotta say as a Python developer I kinda like this compared to thing = Thing()