Module: ScientificNameClean::AnnotationIdentification1
- Defined in:
- lib/biodiversity/parser/scientific_name_clean.rb
Instance Method Summary collapse
Instance Method Details
#apply(sp) ⇒ Object
7699 7700 7701 |
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 7699 def apply(sp) " " + value + " " + sp.value end |
#canonical(sp) ⇒ Object
7703 7704 7705 |
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 7703 def canonical(sp) " " + sp.canonical end |
#details(sp) ⇒ Object
7712 7713 7714 |
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 7712 def details(sp) {:annotation_identification => value, :species => sp.details} end |
#pos(sp) ⇒ Object
7707 7708 7709 7710 |
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 7707 def pos(sp) interval_end = text_value[-1] == " " ? interval.end - 1 : interval.end {interval.begin => ["annotation_identification", interval.end]}.merge(sp.pos) end |
#value ⇒ Object
7695 7696 7697 |
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 7695 def value text_value.strip end |