:“foo #{bar}” ^^^^^^^^^^^^^
foo #{bar}
^^^^^^^^^^^^
-> { it } ^^^^^^^^^
foo(bar: baz) ^^^^^^^^
foo in bar ^^^^^^^^^^
foo => bar ^^^^^^^^^^
/(?<foo>foo)/ =~ bar ^^^^^^^^^^^^^^^^^^^^
-> { 1 + 2 } ^^^^^^^^^^^^^^
if foo .. bar; end ^^^^^^^^^^
def foo(bar); end ^^^
def foo(*bar); end ^^^^
def foo(*); end ^
For %-arrays whitespace, the parser gem only considers whitespace before the newline.
foo => [bar] ^^^^^
def foo(**); bar(**); end ^^ { **foo } ^^^^^
def foo(&bar); end ^^^^
A block’s parameters.
foo.bar, = 1 ^^^^^^^
foo => bar => baz ^^^^^^^^^^
case foo; in bar; end ^^^^^^^^^^^^^^^^^^^^^
If a class variable is written within a method definition, it has a different type than everywhere else.
"foo #{bar}" ^^^^^^
foo => [*, bar, *] ^^^^^^^^^^^
if foo .. bar; end ^^^^^^^^^^