Class: Connect::ExtendedArray
- Inherits:
 - 
      Array
      
        
- Object
 - Array
 - Connect::ExtendedArray
 
 
- Defined in:
 - lib/connect/extended_array.rb
 
Overview
The host for special helper methods
Instance Method Summary collapse
- 
  
    
      #extract(element)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    
return an array with the specfied element extracted from the hashes.
 
Instance Method Details
#extract(element) ⇒ Object
return an array with the specfied element extracted from the hashes. For this method to work, your array must be filled with objects or Hashes
      13 14 15  | 
    
      # File 'lib/connect/extended_array.rb', line 13 def extract(element) collect { |e| e.send(element) } end  |