Module: ScientificNameClean::AuthorSeparator0
- Defined in:
- lib/biodiversity/parser/scientific_name_clean.rb
Instance Method Summary collapse
Instance Method Details
#apply(a, b) ⇒ Object
5288 5289 5290 5291 5292 5293 |
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 5288 def apply(a,b) sep = text_value.strip sep = " &" if ["&", "&","and","et"].include? sep sep = " apud" if sep == "apud" a.value + sep + " " + b.value end |
#details(a, b) ⇒ Object
5299 5300 5301 |
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 5299 def details(a,b) {:author => a.details[:author] + b.details[:author]} end |
#pos(a, b) ⇒ Object
5295 5296 5297 |
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 5295 def pos(a,b) a.pos.merge(b.pos) end |