Blocks and variable parameter lists

If I define a block thus:

       { |a|   ...    }

Then ‘a’ is either a single value or an array, depending on whether it is
called with one or more than one value. Is there a syntax to make it always
be an array even if called with only one parameter? Or do I have to do

a = [a] unless a.kind_of? Array

Thanks,

Brian.

Then 'a' is either a single value or an array, depending on whether it is
called with one or more than one value. Is there a syntax to make it always
be an array even if called with only one parameter? Or do I have to do

pigeon% ruby -e '1.times {|*a| p a}'
[0]
pigeon%

pigeon% ruby -e '{"a", "b"}.each {|*a| p a}'
["a", "b"]
pigeon%

Guy Decoux