2023-01-17 23:46:41 +02:00
|
|
|
variable = foo(
|
|
|
|
[
|
|
|
|
qwe
|
|
|
|
], [
|
|
|
|
rty
|
|
|
|
], {
|
|
|
|
a: 3
|
|
|
|
}
|
|
|
|
)
|
|
|
|
|
|
|
|
tee = [
|
|
|
|
qwe
|
|
|
|
]
|
|
|
|
|
|
|
|
qux = [1,
|
|
|
|
2]
|
|
|
|
|
|
|
|
att = {a: 1,
|
|
|
|
b: 2}
|
|
|
|
|
2023-01-18 00:41:14 +02:00
|
|
|
a = 1 ? 2 :(
|
|
|
|
2 + 3
|
|
|
|
)
|
|
|
|
|
|
|
|
unless bismark
|
|
|
|
sink += 12
|
|
|
|
else
|
|
|
|
dog = 99
|
|
|
|
end
|
|
|
|
|
2023-01-18 00:55:09 +02:00
|
|
|
foo1 =
|
|
|
|
subject.update(
|
|
|
|
1
|
|
|
|
)
|
|
|
|
|
|
|
|
foo2 =
|
|
|
|
subject.
|
|
|
|
update(
|
|
|
|
# Might make sense to indent this to 'subject' instead; but this
|
|
|
|
# style seems more popular.
|
|
|
|
2
|
|
|
|
)
|
|
|
|
|
2023-01-18 02:40:00 +02:00
|
|
|
foo > bar &&
|
|
|
|
tee < qux
|
|
|
|
|
|
|
|
1 .. 2 &&
|
|
|
|
3
|
|
|
|
|
|
|
|
a = foo(j, k) -
|
|
|
|
bar_tee
|
|
|
|
|
|
|
|
qux = foo.fee ?
|
|
|
|
bar :
|
|
|
|
tee
|
|
|
|
|
2023-01-19 03:51:51 +02:00
|
|
|
with_paren = (a + b *
|
|
|
|
c * d +
|
|
|
|
12)
|
|
|
|
|
|
|
|
without_paren = a + b *
|
|
|
|
c * d +
|
|
|
|
12
|
|
|
|
|
2023-01-17 23:46:41 +02:00
|
|
|
# Local Variables:
|
|
|
|
# mode: ruby-ts
|
2023-01-18 02:55:09 +02:00
|
|
|
# ruby-after-operator-indent: t
|
|
|
|
# ruby-block-indent: t
|
2023-01-18 03:21:32 +02:00
|
|
|
# ruby-method-call-indent: t
|
2023-01-18 02:55:09 +02:00
|
|
|
# ruby-method-params-indent: t
|
2023-01-17 23:46:41 +02:00
|
|
|
# End:
|