class MemDB::Fields::Matching
Public Class Methods
new(fields, obj)
click to toggle source
# File lib/mem_db/fields.rb, line 6 def initialize(fields, obj) @matchings = fields.map { |field| field.new_matching(obj) }.reject! do |matching| matching == MemDB::Field::MayMissing::ANY_MATCHING end end
Public Instance Methods
match?(query)
click to toggle source
# File lib/mem_db/fields.rb, line 12 def match?(query) @matchings.all? { |matching| matching.match?(query) } end