Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Common subexpressions in the implementation of disjoint_taxon_name_relationships class method of TaxonNameRelationship's children classes have been extracted into collect_to_s, collect_descendants_to_s and collect_descendants_and_itself_to_s class methods at TaxonNameRelationship class.
- Loading branch information
1 parent
0fd0567
commit a609595
Showing
54 changed files
with
204 additions
and
197 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
app/models/taxon_name_relationship/icn/unaccepting/homonym.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
app/models/taxon_name_relationship/icn/unaccepting/rejected.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
app/models/taxon_name_relationship/icn/unaccepting/synonym.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
app/models/taxon_name_relationship/icn/unaccepting/synonym/heterotypic.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
app/models/taxon_name_relationship/icn/unaccepting/synonym/homotypic.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
app/models/taxon_name_relationship/icn/unaccepting/synonym/homotypic/alternative_name.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
app/models/taxon_name_relationship/icn/unaccepting/synonym/homotypic/isonym.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
app/models/taxon_name_relationship/icn/unaccepting/synonym/homotypic/orthographic_variant.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 5 additions & 6 deletions
11
app/models/taxon_name_relationship/icn/unaccepting/usage.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
class TaxonNameRelationship::Icn::Unaccepting::Usage < TaxonNameRelationship::Icn::Unaccepting | ||
|
||
def self.disjoint_taxon_name_relationships | ||
self.parent.disjoint_taxon_name_relationships + | ||
[TaxonNameRelationship::Icn::Unaccepting.to_s] + | ||
TaxonNameRelationship::Icn::Unaccepting::Synonym.descendants.collect{|t| t.to_s} + | ||
[TaxonNameRelationship::Icn::Unaccepting::Homonym.to_s] + | ||
[TaxonNameRelationship::Icn::Unaccepting::Synonym.to_s] + | ||
[TaxonNameRelationship::Icn::Unaccepting::Rejected.to_s] | ||
self.parent.disjoint_taxon_name_relationships + self.collect_to_s( | ||
TaxonNameRelationship::Icn::Unaccepting, | ||
TaxonNameRelationship::Icn::Unaccepting::Homonym, | ||
TaxonNameRelationship::Icn::Unaccepting::Rejected) + self.collect_descendants_and_itself_to_s( | ||
TaxonNameRelationship::Icn::Unaccepting::Synonym) | ||
end | ||
|
||
end |
6 changes: 3 additions & 3 deletions
6
app/models/taxon_name_relationship/icn/unaccepting/usage/basionym.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
app/models/taxon_name_relationship/icn/unaccepting/usage/misapplication.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
app/models/taxon_name_relationship/icn/unaccepting/usage/misspelling.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 4 additions & 5 deletions
9
app/models/taxon_name_relationship/iczn/invalidating/homonym.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
app/models/taxon_name_relationship/iczn/invalidating/homonym/secondary/secondary_1961.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 4 additions & 5 deletions
9
app/models/taxon_name_relationship/iczn/invalidating/synonym.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 7 additions & 7 deletions
14
app/models/taxon_name_relationship/iczn/invalidating/synonym/forgotten_name.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 6 additions & 6 deletions
12
app/models/taxon_name_relationship/iczn/invalidating/synonym/objective.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
app/models/taxon_name_relationship/iczn/invalidating/synonym/objective/synonymic_homonym.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.