Alternative Block Execution on Empty Enumerable
paul at :pauls.methods posted how he deals with empty block sets. I really like how expressive this is with erb. “each do this end.else do that end”.
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!
paul at :pauls.methods posted how he deals with empty block sets. I really like how expressive this is with erb. “each do this end.else do that end”.
Post a comment