General

Profile

bherms (Bradley Herman)

  • Login: bherms
  • Registered on: 08/30/2018
  • Last sign in: 10/15/2018

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 1 1

Activity

10/15/2018

05:36 PM Ruby Feature #15049: [Request] Easily access all keyword arguments within a method
duerst (Martin Dürst) wrote:
> Maybe I'm totally confused, but what's wrong with using **keyword_arguments?
I agree with zverok's answer.
The main reason for not just doing **args is that you lose several of the benefits of using ...
bherms (Bradley Herman)

08/30/2018

08:11 PM Ruby Feature #15049: [Request] Easily access all keyword arguments within a method
shevegen (Robert A. Heiler) wrote:
> I have had a somewhat related idea in that I wanted a way to access all
> ...
Tbh I hadn't thought too much about naming... Was just trying to get something mocked up quickly. Either way, glad to s...
bherms (Bradley Herman)
07:38 PM Ruby Feature #15049 (Feedback): [Request] Easily access all keyword arguments within a method
As a developer, I'd like to leverage the power of keyword arguments (requirements, defaults, etc) and then be able to access a hash of all the arguments supplied.
~~~ ruby
def foo(bar:, baz: 1, qux: 2...)
post('/', body: kargs)
e...
bherms (Bradley Herman)

Also available in: Atom