class MemDB::Field::Pattern::Pattern::Suffix
Public Class Methods
new(suffix)
click to toggle source
# File lib/mem_db/field/pattern.rb, line 48 def initialize(suffix) @suffix = suffix end
Public Instance Methods
match?(str)
click to toggle source
# File lib/mem_db/field/pattern.rb, line 52 def match?(str) str.end_with?(@suffix) end