Class: ImageDiff::Differ::Results::Filter

Inherits:
Object
  • Object
show all
Defined in:
lib/image_diff/differ/results/list.rb

Overview

Helper class to filter array

Constant Summary collapse

KLASS =
ImageDiff::Differ::Results::ReferenceFileNotFound
LAMBDA =
->(result) { result.is_a?(KLASS) }

Class Method Summary collapse

Class Method Details

.apply(arr, method) ⇒ Object



44
45
46
# File 'lib/image_diff/differ/results/list.rb', line 44

def self.apply(arr, method)
  arr.send(method, &LAMBDA)
end