Module: ScientificNameClean::AnnotationIdentification1
- Defined in:
- lib/biodiversity/parser/scientific_name_clean.rb
Instance Method Summary collapse
Instance Method Details
#apply(sp) ⇒ Object
6901 6902 6903 |
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 6901 def apply(sp) ' ' + value + ' ' + sp.value end |
#canonical(sp) ⇒ Object
6905 6906 6907 |
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 6905 def canonical(sp) ' ' + sp.canonical end |
#details(sp) ⇒ Object
6914 6915 6916 |
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 6914 def details(sp) {:annotation_identification => value, :species => sp.details} end |
#pos(sp) ⇒ Object
6909 6910 6911 6912 |
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 6909 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
6897 6898 6899 |
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 6897 def value text_value.strip end |