module FoodFishParser::Flat::CatchMethod

Constants

REGEX

Public Class Methods

find_all(text) click to toggle source
# File lib/food_fish_parser/flat/catch_method.rb, line 39
def self.find_all(text)
  text
    .scan(REGEX)
    .flatten
    .compact
    .map do |s|
      s.gsub!(/^met\b(\s+de\b)?\s*/, '')
      { text: s }
    end
end