class DailyMenu::Filters::Regexp
Public Class Methods
new(regexp)
click to toggle source
# File lib/daily_menu/filters/regexp.rb, line 3 def initialize(regexp) @regexp = regexp end
Public Instance Methods
matches?(text)
click to toggle source
# File lib/daily_menu/filters/regexp.rb, line 7 def matches?(text) @regexp.match(text.content) end