Module: ScientificNameClean::AnnotationIdentification0

Defined in:
lib/biodiversity/parser/scientific_name_clean.rb

Instance Method Summary collapse

Instance Method Details

#apply(sp) ⇒ Object



7263
7264
7265
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 7263

def apply(sp)
  ""
end

#canonical(sp) ⇒ Object



7267
7268
7269
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 7267

def canonical(sp)
  ""
end

#details(sp) ⇒ Object



7276
7277
7278
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 7276

def details(sp)
  {:annotation_identification => value, :ignored => sp.details}
end

#pos(sp) ⇒ Object



7271
7272
7273
7274
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 7271

def pos(sp)
  interval_end = text_value[-1] == " " ? interval.end - 1 : interval.end
  {interval.begin => ["annotation_identification", interval.end]}
end

#valueObject



7259
7260
7261
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 7259

def value
  text_value.strip
end