magnars/expand-region.el — pull request #8 by mbriggs (2012-01-28 16:09:06+00:00)
Title: Ruby Mode

First of all, I absolutely love this extension :)

In ruby, its very common to have blocks within blocks within blocks (if you don't know the language, they are basically like lambdas), so I added an expansion for them. Also, the function level expansion wasn't working, so I added that too.

There is a bug with the block expansion, where if you have two blocks which are contained within an outer block, and are within the bottom block, it will completely ignore the outer block when expanding. I'll try to figure it out (a bit of an elisp noob), but what I have covers the 99% case