class Rebels::Fakes::FakeDB::NonNullFinder

Public Instance Methods

to_proc() click to toggle source
# File lib/rebels/fakes/fake_db.rb, line 3
def to_proc
  ->(thing) { attrs.select{|k,v| !v.nil?}.all?{|k,v| thing.send(k) == v } }
end