# NEW UNNAMED KEYWORD ARGUMENTS
def new_way(**options)
return options[:foo]
end
# => :new_way
new_way(foo: "bar")
# => "bar"
new_way
# => nil
這裡傳遞給new_way方法的map中,他的key必須是符號 如果傳遞{“ab”=>"valu"} 會報 wrong number of arguments (given 1, expected 0) (ArgumentError)