Module: ScientificNameClean::AnnotationIdentification1
- Defined in:
- lib/biodiversity/parser/scientific_name_clean.rb
Instance Method Summary collapse
Instance Method Details
#apply(sp) ⇒ Object
6675 6676 6677 |
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 6675 def apply(sp) " " + value + " " + sp.value end |
#canonical(sp) ⇒ Object
6679 6680 6681 |
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 6679 def canonical(sp) " " + sp.canonical end |
#details(sp) ⇒ Object
6688 6689 6690 |
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 6688 def details(sp) {:annotation_identification => value, :species => sp.details} end |
#pos(sp) ⇒ Object
6683 6684 6685 6686 |
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 6683 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
6671 6672 6673 |
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 6671 def value text_value.strip end |