module ScientificNameClean::MultinomialName5

Public Instance Methods

canonical() click to toggle source
# File lib/biodiversity/parser/scientific_name_clean.rb, line 1039
def canonical
  if defined? aid.apply
    a.canonical + aid.canonical(c)
  else
    a.canonical + " " + c.canonical
  end
end
details() click to toggle source
# File lib/biodiversity/parser/scientific_name_clean.rb, line 1059
def details
  if defined? aid.apply
    a.details.merge(b.details).merge(aid.apply(c))
  else
    a.details.merge(b.details).merge(c.details)
  end
end
hybrid() click to toggle source
# File lib/biodiversity/parser/scientific_name_clean.rb, line 1055
def hybrid
  c.hybrid rescue false
end
pos() click to toggle source
# File lib/biodiversity/parser/scientific_name_clean.rb, line 1047
def pos
  if defined? aid.apply
    a.pos.merge(b.pos).merge(aid.pos(c))
  else
    a.pos.merge(b.pos).merge(c.pos)
  end
end
value() click to toggle source
# File lib/biodiversity/parser/scientific_name_clean.rb, line 1031
def value
  if defined? aid.apply
    a.value + " " + b.value + aid.apply(c)
  else
    a.value + " " + b.value + " " + c.value
  end
end