30 June 2017
# 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