Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.ruby > #4452

Re: indenting "end"

From Johnny Morrice <spoon@killersmurf.com>
Newsgroups comp.lang.ruby
Subject Re: indenting "end"
Date 2011-05-12 19:53 -0500
Organization Service de news de lacave.net
Message-ID <20110513015308.5e21f54f@killersmurf.com> (permalink)
References <20110512203320.GA72123@guilt.hydra> <BANLkTin8CkkZobdn0x7EAVx=CTQ7MLrFxg@mail.gmail.com>

Show all headers | View raw


> >    def foo(bar)
> >      puts bar
> >      end

> Is this is "real" code (e.g., source of gems, etc.) or in snippets? If
> its cut and pasted from, e.g., irb with autoindent it will look like
> that.

Agreed.  Cut n paste is a bitch that will rape your syntax.  It has no
mercy.  Trust it not.  Opining that I'd postulate these probing
stabbings may be unwarranted.

It does look pythony though.  Is that were it's coming from?

Back to comp.lang.ruby | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: indenting "end" Christopher Dicely <cmdicely@gmail.com> - 2011-05-12 19:24 -0500
  Re: indenting "end" Johnny Morrice <spoon@killersmurf.com> - 2011-05-12 19:53 -0500

csiph-web