Did you know: Ruby Splat
A lot of times, when I’m not using a particular variable in a given subclass implementation (a dangerous pattern), I give the variable an underscore name to remind future-John:
def thing(_arg1, _arg2)
# implementation
end
If there are several I’m not using, I throw a splat in, and swallow all of them:
def thing(*_args)
# implementation
end
BUT, for better or for worse, Ruby splat parameters don’t need names:
def thing(*)
# implementation
end