RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

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!

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”.

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in