Class: NomenclaturalRank::Iczn::FamilyGroup::Superfamily
- Inherits:
-
NomenclaturalRank::Iczn::FamilyGroup
- Object
- NomenclaturalRank
- NomenclaturalRank::Iczn
- NomenclaturalRank::Iczn::FamilyGroup
- NomenclaturalRank::Iczn::FamilyGroup::Superfamily
- Defined in:
- app/models/nomenclatural_rank/iczn/family_group/superfamily.rb
Constant Summary
Constants inherited from NomenclaturalRank::Iczn
Class Method Summary collapse
Methods inherited from NomenclaturalRank::Iczn::FamilyGroup
Methods inherited from NomenclaturalRank::Iczn
Class Method Details
.parent_rank ⇒ Object
3 4 5 |
# File 'app/models/nomenclatural_rank/iczn/family_group/superfamily.rb', line 3 def self.parent_rank NomenclaturalRank::Iczn::HigherClassificationGroup::Nanorder end |
.valid_name_ending ⇒ Object
13 14 15 |
# File 'app/models/nomenclatural_rank/iczn/family_group/superfamily.rb', line 13 def self.valid_name_ending 'oidea' end |
.validate_name_format(taxon_name) ⇒ Object
7 8 9 10 11 |
# File 'app/models/nomenclatural_rank/iczn/family_group/superfamily.rb', line 7 def self.validate_name_format(taxon_name) super return true if taxon_name.name.length < 2 taxon_name.errors.add(:name, 'name must end in -oidea') if not(taxon_name.name =~ /.*oidea\Z/) end |