method
    
    index
 
  index(...)
  public
  Returns the index of the first object in self such that is == to obj. If a block is given instead of an argument, returns first object for which block is true. Returns nil if no match is found.
a = [ "a", "b", "c" ] a.index("b") #=> 1 a.index("z") #=> nil a.index{|x|x=="b"} #=> 1
This is an alias of #find_index.
  
    
      Register or 
      log in
      to add new notes.
  
  
  
  
      
     Mange -  
    July  8, 2009
 Mange -  
    July  8, 2009 
    
  
  
  
       
  
  
  
           Mange -  
    July  8, 2009
 Mange -  
    July  8, 2009 
    
  
    
    1 thank
     
  
  
  This is an alias
Please comment under the real method instead: find_index

 RSpec
RSpec Ruby on Rails
Ruby on Rails Ruby
Ruby 
   
   
   
   
   
   = private
 = private = protected
 = protected
   
    