Array input in ruby function

Hi…I am learning ruby.When I write the function or method i want to
pass an array as a argument for this function and want result based on
that…how do i do that???