Module: Delight::Enumerator::DetectBy
- Defined in:
- lib/delight/enumerator/detect_by.rb
Instance Method Summary collapse
Instance Method Details
#detect_by ⇒ Object
4 5 6 7 8 |
# File 'lib/delight/enumerator/detect_by.rb', line 4 def detect_by(**) detect do |element| collection_matcher(element, **) end end |
#detect_by! ⇒ Object
10 11 12 13 14 |
# File 'lib/delight/enumerator/detect_by.rb', line 10 def detect_by!(**) detect! do |element| collection_matcher(element, **) end end |