Module: ScientificNameClean::AuthorSeparator0

Defined in:
lib/biodiversity/parser/scientific_name_clean.rb

Instance Method Summary collapse

Instance Method Details

#apply(a, b) ⇒ Object



4865
4866
4867
4868
4869
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 4865

def apply(a,b)
  sep = text_value.strip
  sep = " &" if ["&", "&","and","et"].include? sep
  a.value + sep + " " + b.value
end

#details(a, b) ⇒ Object



4875
4876
4877
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 4875

def details(a,b)
  {:author => a.details[:author] + b.details[:author]}
end

#pos(a, b) ⇒ Object



4871
4872
4873
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 4871

def pos(a,b)
  a.pos.merge(b.pos)
end