Module: ScientificNameClean::AuthorSeparator0
- Defined in:
- lib/biodiversity/parser/scientific_name_clean.rb
Instance Method Summary collapse
Instance Method Details
#apply(a, b) ⇒ Object
5302 5303 5304 5305 5306 5307 |
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 5302 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
5313 5314 5315 |
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 5313 def details(a,b) {:author => a.details[:author] + b.details[:author]} end |
#pos(a, b) ⇒ Object
5309 5310 5311 |
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 5309 def pos(a,b) a.pos.merge(b.pos) end |