You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm adopting sorbet and adding method signatures. Since these are connected things, I expect them to be grouped together, as you can see in the Sorbet docs: https://sorbet.org/docs/sigs. However, when formatting with rufo, a newline is inserted:
% rufo
# Input
class MyObj
sig {params(x: Integer).void}
def initialize(x)
@y = x # y has the inferred type Integer
end
end
# ctrl-d: Output
class MyObj
sig { params(x: Integer).void }
def initialize(x)
@y = x # y has the inferred type Integer
end
end