class MemDB::Field::Pattern::Pattern::Suffix

Public Class Methods

new(suffix) click to toggle source
# File lib/mem_db/field/pattern.rb, line 49
def initialize(suffix)
  @suffix = suffix
end

Public Instance Methods

match?(str) click to toggle source
# File lib/mem_db/field/pattern.rb, line 53
def match?(str)
  str.end_with?(@suffix)
end