Using to_enum with methods that take a block
This post describes how to turn methods that use blocks into enumerators using the to_enum method and why this would be useful. https://rossta.net/blog/everything-is-enumerated.html
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
This post describes how to turn methods that use blocks into enumerators using the to_enum method and why this would be useful. https://rossta.net/blog/everything-is-enumerated.html
Post a comment