Thanks guys for the answers, makes sense now :)

- Misha

On Feb 26, 10:04 am, misham <[email protected]> wrote:
> I'm looking at the code athttp://flori.github.com/json/ and the
> example given is:
>
> class Range
>   def to_json(*a)
>     {
>       'json_class'   => self.class.name,
>       'data'         => [ first, last, exclude_end? ]
>     }.to_json(*a)
>   end
>
>   def self.json_create(o)
>     new(*o['data'])
>   end
> end
>
> What does *a mean in the to_json function parameter list?

-- 
SD Ruby mailing list
[email protected]
http://groups.google.com/group/sdruby

Reply via email to