Ruby Guilty Pleasures

Here’s a bit of code that I both love and feel a bit guilty about. project_root = Pathname.pwd.ascend{|dir| break dir if (dir + “demos”).directory? } or fail “No project root…

Read More