Created
November 10, 2014 09:17
-
-
Save NikitaAvvakumov/d4d8793fd315fade486d to your computer and use it in GitHub Desktop.
OSRA style guide - indents
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# no indentation | |
def send_mail(source) | |
Mailer.deliver(to: '[email protected]', from: '[email protected]', subject: 'Important message', body: source.text) | |
end | |
# single indent | |
def send_mail(source) | |
Mailer.deliver( | |
to: '[email protected]', | |
from: '[email protected]', | |
subject: 'Important message', | |
body: source.text) | |
end | |
# double indent | |
def send_mail(source) | |
Mailer.deliver( | |
to: '[email protected]', | |
from: '[email protected]', | |
subject: 'Important message', | |
body: source.text) | |
end | |
# aligned params | |
def send_mail(source) | |
Mailer.deliver(to: '[email protected]', | |
from: '[email protected]', | |
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