Module: ScientificNameClean::MultinomialName9
- Defined in:
- lib/biodiversity/parser/scientific_name_clean.rb
Instance Method Summary collapse
Instance Method Details
#canonical ⇒ Object
1134 1135 1136 1137 1138 1139 1140 |
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 1134 def canonical if defined? aid.apply a.canonical + aid.canonical(b) else a.canonical + " " + b.canonical end end |
#details ⇒ Object
1154 1155 1156 1157 1158 1159 1160 |
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 1154 def details if defined? aid.apply a.details.merge(aid.details(b)) else a.details.merge(b.details) end end |
#hybrid ⇒ Object
1150 1151 1152 |
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 1150 def hybrid b.hybrid rescue false end |
#pos ⇒ Object
1142 1143 1144 1145 1146 1147 1148 |
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 1142 def pos if defined? aid.apply a.pos.merge(aid.pos(b)) else a.pos.merge(b.pos) end end |
#value ⇒ Object
1126 1127 1128 1129 1130 1131 1132 |
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 1126 def value if defined? aid.apply a.value + aid.apply(b) else a.value + " " + b.value end end |