This adds a workaround for #75 (which is a bug in YARD, not Sord) by checking for a unary minus at the beginning of a default parameter value, and if one is there, chops off its final character.
Looking at the original example from haml, previously:
sig { params(index: T.untyped).returns(T.untyped) }
def rstrip_buffer!(index = -1)); end
Now:
sig { params(index: T.untyped).returns(T.untyped) }
def rstrip_buffer!(index = -1); end
This adds a workaround for #75 (which is a bug in YARD, not Sord) by checking for a unary minus at the beginning of a default parameter value, and if one is there, chops off its final character.
Looking at the original example from haml, previously:
Now:
(cc @connorshea)