Module: ScientificName::Rank0

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

Instance Method Summary collapse

Instance Method Details

#apply(a) ⇒ Object



2641
2642
2643
# File 'lib/biodiversity/parser/scientific_name.rb', line 2641

def apply(a)
  " " + text_value + " " + a.value
end

#canonical(a) ⇒ Object



2644
2645
2646
# File 'lib/biodiversity/parser/scientific_name.rb', line 2644

def canonical(a)
  " " + a.value
end

#details(a = nil) ⇒ Object



2647
2648
2649
# File 'lib/biodiversity/parser/scientific_name.rb', line 2647

def details(a = nil)
  {:subspecies => [{:rank => text_value, :value => (a.value rescue nil)}]}
end

#valueObject



2638
2639
2640
# File 'lib/biodiversity/parser/scientific_name.rb', line 2638

def value
  text_value.strip
end