Lightning Talk: Smooshing Ruby
summary
Claims a working, compact Ruby shim that lets you alias flatten to smoosh and add depth control by pattern-matching method names. Implementation uses metaprogramming: method_missing with regex to parse depth, calls a non-bang flatten-style routine and favors a non-bang recursive pattern that returns a new array. About a dozen lines of code produce the feature; it works but admits safety and clarity tradeoffs.
AI-written summary · about








