Ruby - Methods - Variable Arguments

  • + 0 comments
    # Your code here
    def full_name(first_name, *middle_and_last_names)
      ([first_name] + middle_and_last_names).join(" ")
    end