Class: Array

Inherits:
Object show all
Defined in:
lib/webrat/core_extensions/blank.rb,
lib/webrat/core_extensions/detect_mapped.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#detect_mappedObject



3
4
5
6
7
8
9
10
# File 'lib/webrat/core_extensions/detect_mapped.rb', line 3

def detect_mapped
  each do |element|
    result = yield element
    return result if result
  end

  return nil
end