title: private method `select' called for #<Room:0x00000001f6f5f8> (NoMethodError)
body: <p>I'm quite new to Ruby and I'm having trouble finishing an exercise I am trying to solve. It's a classic Game of Rooms, and after a messing a bit I've came up with a code that looked OK to me - minus that does not work.</p>
  
  <p>I am trying to call the select method from within another method in a class, on what I am pretty sure it's an array (@position), but I'm getting the above error message.</p>
  
  <p>Here's a sample of my code, any idea on why that .select is private will be welcome!</p>
  
  <pre><code>class GameofRooms
    attr_accessor :position
  
    def initialize
      @rooms = [ 
        Room.new("Red",{"s" =&gt; "Green", "e" =&gt; "Blue"},"it's a red room"),
        Room.new("Blue",{"w" =&gt; "Red", "e" =&gt; "Patio", "s" =&gt; "Yellow"},"it's a blue room"),
        Room.new("Yellow",{"e" =&gt; "Patio", "n" =&gt; "Blue", "w" =&gt; "Green"},"it's a yellow room"),
        Room.new("Green",{"n" =&gt; "Red", "e" =&gt; "Yellow"},"it's a green room"),
        Room.new("Patio",{"s" =&gt; "Green", "w" =&gt; "Blue"},"lovely garden")
      ]
      @position = @rooms[0]    
    end
  
  
    def get_input_move
      puts "Where would you like to go?"
      @input = gets.chomp
      if @position.exits.key?(@input)
        roomName = @position.exits[@input]
        room = @position.select {|selectedRoom| selectedRoom.name == roomName } 
        self.class.move(room)
      elsif 
        puts "You can't go in that direction"         
      end
    end
  
    def self.move(room)
      @position = room
      @position.each do |room|
        puts "You have entered the #{name} room. #{text}" 
      end
    end
  end
  
  class Room
    attr_accessor :name, :exits, :text
  
    def initialize(name,exits,text="")
      @name = name
      @exits = exits
      @text = text
    end
  end
  
  round = GameofRooms.new
  round.get_input_move
  </code></pre>