lib/vkontakte_api/utils.rb
# If an argument is an array, it will be joined with a comma; otherwise it'll be returned untouched.
# @param [Object] argument The argument to flatten.
If an argument is an array, it will be joined with a comma; otherwise it'll be returned untouched.
If an argument is an array it will be joined with a comma ; otherwise it ' ll be returned untouched .
def flatten_argument(argument)
        if argument.respond_to?(:join)
          argument.join(',')
        else
          argument
        end
      end
def flatten_argument ( argument ) if argument . respond_to? ( :join ) argument . join ( ',' ) else argument end end
If an argument is an array, it will be joined with a comma; otherwise it'll be returned untouched.
If an argument is an array it will be joined with a comma ; otherwise it ' ll be returned untouched .
# if argument is an array, we join it with a comma # otherwise leave it untouched
argument
argument The argument to flatten.
argument The argument to flatten .