Re:Better Know a Ruby Thing: Singleton Classes
by lcnPylGDnU4H9OF on Saturday February 01, 2025 @12:42PM
(#42900255)
Thanks for the correction! It can be hard to appreciate how true “everything is an object” is.
[ Parent
| on HN ]
Re:Better Know a Ruby Thing: Singleton Classes
by dragonwriter on Saturday February 01, 2025 @02:20PM
(#42901255)
That and how, between block arguments and optional parens on method invocation, Ruby allows (and the core exploits this) defining lots of constructs that look like keyword-based syntax as methods.