Class: Catalog::Nomenclature

Inherits:
Catalog
  • Object
show all
Defined in:
lib/catalog/nomenclature.rb,
lib/catalog/nomenclature/entry.rb

Direct Known Subclasses

PaperCatalog

Defined Under Namespace

Classes: Entry, EntryItem, PaperCatalog

Instance Attribute Summary

Attributes inherited from Catalog

#catalog_targets, #entries

Instance Method Summary collapse

Methods inherited from Catalog

all_dates, #build, chronological_item_sort, #citations, #entries_sorted, #entry_sort_valid?, #initialize, #items, #items_chronologically, #objects_for_source, #reference_object_global_id, #reference_object_valid_taxon_name_global_id, #sources, #sources_to_json, topic_year_metadata, #topics, #topics_to_json, year_hash, year_metadata

Constructor Details

This class inherits a constructor from Catalog

Instance Method Details

#namesArray of TaxonName

Returns all names observed in this catalog. For example the index.

Returns:

  • (Array of TaxonName)

    all names observed in this catalog. For example the index.



5
6
7
8
9
10
11
# File 'lib/catalog/nomenclature.rb', line 5

def names
  n = []
  entries.each do |e|
    n += e.all_names
  end
  n.uniq
end