Class: TaxonNameClassification::Latinized::Gender::Neuter

Inherits:
TaxonNameClassification::Latinized::Gender show all
Defined in:
app/models/taxon_name_classification/latinized/gender/neuter.rb

Constant Summary

NOMEN_URI =
'http://purl.obolibrary.org/obo/NOMEN_0000049'

Constants included from SoftValidation

SoftValidation::ANCESTORS_WITH_SOFT_VALIDATIONS

Instance Attribute Summary

Attributes inherited from TaxonNameClassification

#project_id, #taxon_name_id, #type

Class Method Summary (collapse)

Methods inherited from TaxonNameClassification::Latinized::Gender

applicable_ranks

Methods inherited from TaxonNameClassification

#annotated_object, annotates?, applicable_ranks, #classification_label, code_applicability_end_year, code_applicability_start_year, collect_descendants_and_itself_to_s, collect_descendants_to_s, collect_to_s, gbif_status, label, #nomen_id, nomen_uri, #nomenclature_code, #nomenclature_code_matches, #set_cached, #set_cached_names_for_taxon_names, #sv_not_specific_classes, #sv_proper_classification, #sv_validate_disjoint_classes, #type_class, #type_class=, #type_name, #validate_taxon_name_classification, #validate_uniqueness_of_latinized

Methods included from SoftValidation

#clear_soft_validations, #fix_soft_validations, #soft_fixed?, #soft_valid?, #soft_validate, #soft_validated?, #soft_validations

Methods included from Housekeeping

#has_polymorphic_relationship?

Methods included from ActiverecordUtilities

#trim_attributes

Class Method Details

+ (Object) assignable



25
26
27
# File 'app/models/taxon_name_classification/latinized/gender/neuter.rb', line 25

def self.assignable
  true
end

+ (Object) disjoint_taxon_name_classes



19
20
21
22
23
# File 'app/models/taxon_name_classification/latinized/gender/neuter.rb', line 19

def self.disjoint_taxon_name_classes
  self.parent.disjoint_taxon_name_classes +
      self.collect_descendants_and_itself_to_s(TaxonNameClassification::Latinized::Gender::Masculine,
                                               TaxonNameClassification::Latinized::Gender::Feminine)
end

+ (Object) possible_genus_endings



5
6
7
# File 'app/models/taxon_name_classification/latinized/gender/neuter.rb', line 5

def self.possible_genus_endings
  %w(ceras soma stigma stoma um on u)
end

+ (Object) possible_species_endings



9
10
11
# File 'app/models/taxon_name_classification/latinized/gender/neuter.rb', line 9

def self.possible_species_endings
  %w(iense ense ianum anum culum ulum lum ium rum um on e)
end

+ (Object) questionable_species_endings



13
14
15
16
17
# File 'app/models/taxon_name_classification/latinized/gender/neuter.rb', line 13

def self.questionable_species_endings
  TaxonNameClassification::Latinized::Gender::Feminine.possible_species_endings +
      TaxonNameClassification::Latinized::Gender::Masculine.possible_species_endings -
      self.possible_species_endings
end