# receive an array
def some_func(*args)
puts args.count
end
some_func("x", nil)
# 2
# receive a hash
def some_func(**args)
puts args.count
end
some_func(a: "x", b: nil)
# 2
# receive an array
def some_func(*args)
puts args.count
end
some_func("x", nil)
# 2
# receive a hash
def some_func(**args)
puts args.count
end
some_func(a: "x", b: nil)
# 2