On Apr 2, 2006, at 6:09 PM, James Edward Gray II wrote:
like switching { ... } to do ... end
This one is already included with the Ruby bundle (Ctrl-{), but it does not work with blocks with multiple statements:
obj.method do |blah| ... ... end
obj.method { |blah| ...; ... }
It works both ways, so you can convert { ... } <-> do ... end.
My questions are:
- Is there any interest in me providing these additions publicly?
- Would if be allowed for me to add some or all of this to the
default Ruby bundle?
I would be interested in them.
And while on the subject of the Ruby bundle -- a "module" snippet would be a good one to add.
-- Daniel