Module: ScientificNameClean::AnnotationIdentification1
- Defined in:
- lib/biodiversity/parser/scientific_name_clean.rb
Instance Method Summary collapse
Instance Method Details
#apply(sp) ⇒ Object
6663 6664 6665 |
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 6663 def apply(sp) ' ' + value + ' ' + sp.value end |
#canonical(sp) ⇒ Object
6667 6668 6669 |
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 6667 def canonical(sp) ' ' + sp.canonical end |
#details(sp) ⇒ Object
6676 6677 6678 |
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 6676 def details(sp) {:annotation_identification => value, :species => sp.details} end |
#pos(sp) ⇒ Object
6671 6672 6673 6674 |
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 6671 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
6659 6660 6661 |
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 6659 def value text_value.strip end |