Module: TaxonNames::TaxonomyHelper
- Defined in:
- app/helpers/taxon_names/taxonomy_helper.rb
Overview
Functions facilitating the use of ‘taxonomy` (Shared::Taxonomy) objects
Instance Method Summary collapse
-
#ancestry_path(ancestry, delimiter: '|') ⇒ Object
String all names joined with the delimiter.
Instance Method Details
#ancestry_path(ancestry, delimiter: '|') ⇒ Object
Returns String all names joined with the delimiter.
9 10 11 12 13 |
# File 'app/helpers/taxon_names/taxonomy_helper.rb', line 9 def ancestry_path(ancestry, delimiter: '|') return nil if ancestry.blank? ancestry.shift # remove 'Root' ancestry.join(delimiter) end |