Class: Catalog::Nomenclature
- Defined in:
- lib/catalog/nomenclature.rb,
lib/catalog/nomenclature/entry.rb
Direct Known Subclasses
Defined Under Namespace
Classes: Entry, EntryItem, PaperCatalog
Instance Attribute Summary
Attributes inherited from Catalog
Instance Method Summary collapse
-
#names ⇒ Array of TaxonName
All names observed in this catalog.
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
#names ⇒ Array of TaxonName
Returns 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 |