Module: ScientificNameClean::AuthorSeparator0

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

Instance Method Summary collapse

Instance Method Details

#apply(a, b) ⇒ Object



4877
4878
4879
4880
4881
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 4877

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

#details(a, b) ⇒ Object



4887
4888
4889
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 4887

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

#pos(a, b) ⇒ Object



4883
4884
4885
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 4883

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