Saturday, April 14, 2012

Re: indenting ruby code

> > On Thursday, April 12, 2012 12:15:56 AM UTC-7, a_olme wrote:
> > > To try to confirm with my teams indenting rules for ruby code I would need to change the indenting of my rspec files so that the do that follows the it doesn't cause an extra indentation.
> >
>
> describe "some behavior" do
> __it "should work do
> __#...
> __end
> end
>
> is what "I" like to have but i seem to get is
>
> describe "some behavior" do
> __it "should work do
> ____#...
> __end
> end

Oh, sorry, then - I don't know. That's just standard Ruby indentation, of course.

I'm curious about this style, though. Is it because the 'describe's tend to have only one 'it'?

///ark

Mark Wilden
Web Applications Developer
California Academy of Sciences

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: