Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
[Feature #14145] Method parameters inspect #2618
def m(a, b=nil, *c, d:, e: nil, **rest, &block) end p method(:m) #=> #<Method: m(a, b=..., *c, d:, e: ..., **rest, &block) ...>
Implementation is most probably not optimal (to say the least), I am ready to fix it by comments. At least the tests and implementation should handle all possible cases.
UPD 2019-11-20: Representation of default and noname params changed after discussion with @ko1 on bugs.ruby-lang.org