Module: ScientificNameClean::AuthorSeparator0

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

Instance Method Summary collapse

Instance Method Details

#apply(a, b) ⇒ Object



5026
5027
5028
5029
5030
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 5026

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

#details(a, b) ⇒ Object



5036
5037
5038
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 5036

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

#pos(a, b) ⇒ Object



5032
5033
5034
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 5032

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