Class: TaxonNameClassification::Latinized::PartOfSpeech::Participle
Constant Summary
collapse
- NOMEN_URI =
'http://purl.obolibrary.org/obo/NOMEN_0000053'.freeze
Class Method Summary
collapse
Instance Method Summary
collapse
applicable_ranks, #set_gender_in_taxon_name, #validate_uniqueness_of_latinized
Class Method Details
.assignable ⇒ Object
12
13
14
|
# File 'app/models/taxon_name_classification/latinized/part_of_speech/participle.rb', line 12
def self.assignable
true
end
|
.disjoint_taxon_name_classes ⇒ Object
Instance Method Details
#set_cached ⇒ Object
16
17
18
19
|
# File 'app/models/taxon_name_classification/latinized/part_of_speech/participle.rb', line 16
def set_cached
set_gender_in_taxon_name
super
end
|
#sv_not_specific_classes ⇒ Object
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# File 'app/models/taxon_name_classification/latinized/part_of_speech/participle.rb', line 21
def sv_not_specific_classes
t = taxon_name.name
if !t.end_with?('us') &&
!t.end_with?('a') &&
!t.end_with?('um') &&
!t.end_with?('is') &&
!t.end_with?('e') &&
!t.end_with?('or') &&
!t.end_with?('er')
if taxon_name.name != taxon_name.masculine_name || taxon_name.name != taxon_name.feminine_name || taxon_name.name != taxon_name.neuter_name
soft_validations.add(:type, 'Declinable participle name should end with one of the following endings: -us, -a, -um, -is, -e, -er, -or')
end
end
end
|