Method: PageObject::SectionCollection#find_by
- Defined in:
- lib/page-object/section_collection.rb
#find_by(values_hash) ⇒ Object
3 4 5 6 7 |
# File 'lib/page-object/section_collection.rb', line 3 def find_by(values_hash) find do |section| values_hash.all? { |key, value| value === section.public_send(key) } end end |