Skip to content

Instantly share code, notes, and snippets.

@NikitaAvvakumov
Created November 10, 2014 09:17
Show Gist options
  • Save NikitaAvvakumov/d4d8793fd315fade486d to your computer and use it in GitHub Desktop.
Save NikitaAvvakumov/d4d8793fd315fade486d to your computer and use it in GitHub Desktop.
OSRA style guide - indents
# no indentation
def send_mail(source)
Mailer.deliver(to: 'bob@example.com', from: 'us@example.com', subject: 'Important message', body: source.text)
end
# single indent
def send_mail(source)
Mailer.deliver(
to: 'bob@example.com',
from: 'us@example.com',
subject: 'Important message',
body: source.text)
end
# double indent
def send_mail(source)
Mailer.deliver(
to: 'bob@example.com',
from: 'us@example.com',
subject: 'Important message',
body: source.text)
end
# aligned params
def send_mail(source)
Mailer.deliver(to: 'bob@example.com',
from: 'us@example.com',
subject: 'Important message',
body: source.text)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment