lib/noble_names/match_index.rb
# Caches the particles or prefixes by the languages selected
# in the config.
# @return [Array] selected_data The data filtered by
#   used languages.
Caches the particles or prefixes by the languages selected
in the config.
Caches the particles or prefixes by the languages selected in the config .
def selected_data
      @selected_data ||=
        data
        .select { |l| languages.include? l.to_sym }
        .values
        .flatten
    end
def selected_data @selected_data ||= data . select { | l | languages . include? l . to_sym } . values . flatten end
Caches the particles or prefixes by the languages selected
in the config.
Caches the particles or prefixes by the languages selected in the config .
selected_data The data filtered by used languages.
selected_data The data filtered by used languages .
Array