class Memelicious::Matcher

Public Class Methods

[](string)
Alias for: match
match(string) click to toggle source
# File lib/memelicious/matcher.rb, line 6
def match(string)
  Memelicious::Meme.memes.each do |meme|
    match = meme.match(string)
    if match
      return [meme, match]
    end
  end
  return nil
end
Also aliased as: []