Module: FoodFishParser::Flat::Kind
- Defined in:
- lib/food_fish_parser/flat/kind.rb
Constant Summary collapse
- REGEX_WILD =
/ \b (?: gevangen | visgebied | vangst?gebied | visvangst | betrapt \s+ bij | wilde? \s+ #{FishNameNL::REGEX} | MSC # certificate is for wild fish only ) \b /ix
- REGEX_AQUAC =
/ \b (?: gekweekt | aquacultuurproduct | aquacultuur \s+ product | kweekmethode | kweekmethoden | ASC # certificate is for aquaculture fish only ) \b /ix
Class Method Summary collapse
Class Method Details
.is_aquac?(text) ⇒ Boolean
38 39 40 |
# File 'lib/food_fish_parser/flat/kind.rb', line 38 def self.is_aquac?(text) !!REGEX_AQUAC.match(text) end |
.is_wild?(text) ⇒ Boolean
34 35 36 |
# File 'lib/food_fish_parser/flat/kind.rb', line 34 def self.is_wild?(text) !!REGEX_WILD.match(text) end |