Module: ScientificName::Rank0
- Defined in:
- lib/biodiversity/parser/scientific_name.rb
Instance Method Summary collapse
Instance Method Details
#apply(a) ⇒ Object
2468 2469 2470 |
# File 'lib/biodiversity/parser/scientific_name.rb', line 2468 def apply(a) " " + text_value + " " + a.value end |
#canonical(a) ⇒ Object
2471 2472 2473 |
# File 'lib/biodiversity/parser/scientific_name.rb', line 2471 def canonical(a) " " + a.value end |
#details(a = nil) ⇒ Object
2474 2475 2476 |
# File 'lib/biodiversity/parser/scientific_name.rb', line 2474 def details(a = nil) {:subspecies => [{:rank => text_value, :value => (a.value rescue nil)}]} end |
#value ⇒ Object
2465 2466 2467 |
# File 'lib/biodiversity/parser/scientific_name.rb', line 2465 def value text_value.strip end |