Module: ScientificNameClean::MultinomialName9
- Defined in:
- lib/biodiversity/parser/scientific_name_clean.rb
Instance Method Summary collapse
Instance Method Details
#canonical ⇒ Object
1151 1152 1153 1154 1155 1156 1157 |
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 1151 def canonical if defined? aid.apply a.canonical + aid.canonical(b) else a.canonical + " " + b.canonical end end |
#details ⇒ Object
1171 1172 1173 1174 1175 1176 1177 |
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 1171 def details if defined? aid.apply a.details.merge(aid.details(b)) else a.details.merge(b.details) end end |
#hybrid ⇒ Object
1167 1168 1169 |
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 1167 def hybrid b.hybrid rescue false end |
#pos ⇒ Object
1159 1160 1161 1162 1163 1164 1165 |
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 1159 def pos if defined? aid.apply a.pos.merge(aid.pos(b)) else a.pos.merge(b.pos) end end |
#value ⇒ Object
1143 1144 1145 1146 1147 1148 1149 |
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 1143 def value if defined? aid.apply a.value + aid.apply(b) else a.value + " " + b.value end end |