Defining Optional Argument

Hi all.

I'm trying to create an optional argument that if it's not passed, a
default value will be assigned.

def graph (graph_type, graph_period, *hidden)

  hidden = 1 if hidden.nil

end

1. hidden is a tinyint (0 or 1), * is used for hash, so what's the best
syntex that I should have here?

2. hidden.nil doesn't seem to work, as it's not assigning the hidden =
1. any suggestions on what I should do here?

Thanks in advance.

Grace

Hi --