Module: ScientificNameClean::MultinomialName5
- Defined in:
- lib/biodiversity/parser/scientific_name_clean.rb
Instance Method Summary collapse
Instance Method Details
#canonical ⇒ Object
1022 1023 1024 1025 1026 1027 1028 |
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 1022 def canonical if defined? aid.apply a.canonical + aid.canonical(c) else a.canonical + " " + c.canonical end end |
#details ⇒ Object
1042 1043 1044 1045 1046 1047 1048 |
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 1042 def details if defined? aid.apply a.details.merge(b.details).merge(aid.apply(c)) else a.details.merge(b.details).merge(c.details) end end |
#hybrid ⇒ Object
1038 1039 1040 |
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 1038 def hybrid c.hybrid rescue false end |
#pos ⇒ Object
1030 1031 1032 1033 1034 1035 1036 |
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 1030 def pos if defined? aid.apply a.pos.merge(b.pos).merge(aid.pos(c)) else a.pos.merge(b.pos).merge(c.pos) end end |
#value ⇒ Object
1014 1015 1016 1017 1018 1019 1020 |
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 1014 def value if defined? aid.apply a.value + " " + b.value + aid.apply(c) else a.value + " " + b.value + " " + c.value end end |