Skip to content

Instantly share code, notes, and snippets.

@elyzion
Last active August 29, 2015 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elyzion/b3486486a43f1e4918c6 to your computer and use it in GitHub Desktop.
Save elyzion/b3486486a43f1e4918c6 to your computer and use it in GitHub Desktop.
#Non-align
def foo
some_function(true, { :before => 1,
:after => 2 })
end
def bar
case @var
when 1
print 'a'
else
print 'b'
end
end
A = [1,
2,
3]
def foobar(p1: nil,
p2: true,
p3: nil)
end
foobar(p1: "",
p2: false,
p3: 1)
# Align
def foo
some_function(true, { :before => 1,
:after => 2 })
end
def bar
case @var
when 1
print 'a'
else
print 'b'
end
end
A = [1,
2,
3]
def foobar(p1: nil,
p2: true,
p3: nil)
end
foobar(p1: "",
p2: false,
p3: 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment