class MemDB::Field::Pattern::SingleMatching
Public Class Methods
new(f, el)
click to toggle source
# File lib/mem_db/field/pattern.rb, line 98 def initialize(f, el) @f = f @pat = Pattern.new(el) end
Public Instance Methods
match?(query)
click to toggle source
# File lib/mem_db/field/pattern.rb, line 103 def match?(query) @f.query_value(query).any? { |str| @pat.match?(str) } end