Method: Scrubyt::BaseFilter#method_missing

Defined in:
lib/scrubyt/core/scraping/filters/base_filter.rb

#method_missing(method_name, *args, &block) ⇒ Object



69
70
71
72
73
74
75
76
# File 'lib/scrubyt/core/scraping/filters/base_filter.rb', line 69

def method_missing(method_name, *args, &block)
  case method_name.to_s
  when /^ensure.+/
    constraints << Constraint.send("add_#{method_name.to_s}".to_sym, self, *args)
  else
    throw_method_missing(method_name, *args, &block)
  end
end