Hacker News new | ask | show | jobs
by kule 1687 days ago
Yeah, should be invocation, there's a nice example on the feature request (https://bugs.ruby-lang.org/issues/14579):

  def login(username: ENV["USER"], password:)
    p(username:, password:)
  end

  login(password: "xxx") #=> {:username=>"shugo", :password=>"xxx"}