title: Initialize method with array in Ruby
body: <p>im new with ruby and i tried to put an array into initialize method but its not work like that, so how to put an array with this argument ? thanks</p>
  
  <pre><code>class User
      attr_accessor :name, :friends
  
      def initialize(name, friends)
          @name = name
          @friends = friends
      end
  
      def friendNbr
          return friends.count
      end
  
      def isFriendWith(value)
          friends.each do |user|
              if (user.name == value)
                  return "Yes, #{name} is friend with #{user.name}"
              end
          end
  
          return "No, #{name} is not friend with #{value}"
      end
  end
  
  jane = User.new("Jane", [boris, francois, carlos, alice])
  
  bob = User.new("Bob", [jane, boris, missy])
  
  alice = User.new("Alice", [bob, jane])
  
  
  # bob.isFriendWith("Jane")
  # jane.isFriendWith("Alice")
  # alice.isFriendWith("Carlos")
  </code></pre>