Module: ScientificName::SpeciesName1

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

Instance Method Summary collapse

Instance Method Details

#canonicalObject



2730
2731
2732
# File 'lib/biodiversity/parser/scientific_name.rb', line 2730

def canonical
  a.value + " " + b.value
end

#detailsObject



2733
2734
2735
# File 'lib/biodiversity/parser/scientific_name.rb', line 2733

def details
  {:genus => a.value, :species => b.value, :cross => 'before'}
end

#valueObject



2727
2728
2729
# File 'lib/biodiversity/parser/scientific_name.rb', line 2727

def value
  "× " + a.value + " " + b.value
end